git init
git clone https://github.com/AuthorizeNet/sdk-java.git
git config -l
git config --add [email protected]
Edit .gitconfig
user.name=brianmc
[email protected]
http.proxy=http://internet.visa.com:80
https.proxy=http://internet.visa.com:443
git add test-brian.txt
*** The most used command ***
git status
git commit -a -m "Committing this change"
https://github.com/brianmc/git-training
git clone https://github.com/brianmc/git-training.git
git status
git commit -a -m "Committing this change"
git checkout -- <filename>
git fetch origin
git reset --hard origin/master
git push origin master
git checkout -b newfeaturebranch
git checkout master
git checkout newfeaturebranch
Make some changes in newfeaturebranch
git diff master newfeaturebranch
git checkout master git merge newfeaturebranch