tl;dr: ,There is a very great significance of using revert
instead of git reset
coz it preserver all history and its important if you pushed earlier commmit to public and want it to be undone(remove) and still don't want to force push then git revert
rocks coz it does exactly that! Read below like for more insights!.
- Do u know that if your repo does not accepting changes updates via git pull, you can use git pull -f and it'll forcefully update your current repo with github database of your repo
Git push -f will forcely push your repo to Github , but only use this when your git refuse to push it into your repo
-
gac (){
echo + git add .
git add .
echo + git commit -m \'$@\'
git commit -m "$*" # gac life is amazing adders
}
gacps shortcuts life to project pushing quicker.
gacp (){
echo + git add .
git add .
echo + git commit -m \'$@\'
git commit -m "$*"
echo + git push -f
git push -f
}
Host User1 github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_User1
Host User2 github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_User2