-
Initialize repository
git init
-
Add content
git add *
-
Commit
git commit -m "commit message"
-
Add Remote
git remote add origin [https://github.com/User/YourRepo.git]
-
Push to master
git push --set-upstream origin master
git checkout -b [name_of_your_new_branch]
git push origin [name_of_your_branch]
git pull origin [name_of_your_branch]
git push origin --delete [name_of_your_branch]
##Rollback Commits
git reset --hard HEAD
-
git reset --hard [commit_hash]
-
git push -f origin [name_of_your_breanch]