Git
File versioning system
File versioning system
git clone
git checkout [branch name]
git checkout -b [branch name]
git branch
git pull
git add [filename]
git commit -am "Message describing the committed code"
git commit path/to/file -m "Message describing the committed code"
git push
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
Create .gitignore_global
in your home folder.
Run this:
echo .DS_Store >> ~/.gitignore_global
to create .gitignore_global
file in your home folder and exclude all .DS_Store files
.
Then run:
git config --global core.excludesfile ~/.gitignore_global
for git to use it for all repositories. You need to run this everytime you update .gitignore_global