Difference between revisions of "GIT client"
Line 26: | Line 26: | ||
See | See | ||
− | + | * [[GIT client (basic)| GIT client (basic usage)]] | |
− | [[GIT client ( | + | * [[GIT client (EP)|GIT client European Parliament]] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 07:48, 19 November 2018
Contents
References
Concepts, tutorials and how-to:
- Short introduction: Git short guide
- Excellent "Git complete guide" (with videos): Visual Studio GIT howTo
- Complete and excellent introduction, all in 1 blog post: Become a Git pro in just one blog: a thorough guide to git architecture and command line interface
Official documentation:
- Official website: http://git-scm.com
- Help page: http://git-scm.com/book/en/
- GitHub wiki page: https://help.github.com/articles/set-up-git/
Installation
See Git setup
Usage
See
Get project files
Run the following commands a standard user, not root!
- Clone an existing project
git clone [url] [targetFolder]
Note that you can use HTTPS, SSH or SVN URLs.
- Perform operation using Git GUI
cd [my GIT repo]
git gui
Update files
- Check files status
git status
- Update files on local HEAD
git pull
Commit files
- Add file
git add [file]
- Commit
git commit -m "my comment"
- Send changes to the server
git push
Ignore files in GIT
For a complete list of files see: https://github.com/github/gitignore
Here is my .gitignore file.
Create a file called .gitignore to the root of your GIT repo.
cd [my GIT repo]
vim .gitignore
Insert the following code:
## generic files to ignore
*~
*.lock
*.DS_Store
*.swp
*.out
*.tmp
*.temp
build/
#java specific
*.class
target/
#maven
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
#netbeans ignore personal stuff
nbproject/private/
#eclipse specifics
settings/
.project
.classpath
.checkstyle
#intelliJ
.idea/
#gradle
.gradle/
gradle-app.setting
You can find more example on https://github.com/github/gitignore