🧙♂️In this repository I am going to add all the tips and tricks for using GIT like a wizard.
git clone <LINK>
or
git clone <LINK> .
or
git clone <LINK> <folder_name>
git add .
git commit -m "<Message>"
git push
git pull
git fetch
git checkout <branch_name>
To force it
git checkout <branch_name> -f
git remote add origin <LINK>
git remote rm <REMOTE NAME>
git remote set-url origin <LINK>
git remote -v
Squash is a nice feature that allows to do a commit collapsing all the history commits in one commit. It is useful when developer do WIP commits.
git checkout <branch_name>
git merge --squash <branch_name>
git commit
git checkout --orphan <name_you_choose_for_orphan_branch>
git commit
All the chances will be replaced by the checkout.
git checkout <branch_name> -f
git -c http.sslVerify=false clone <LINK>
git config http.sslVerify false
Global:
git config --global http.sslVerify false
git pull --allow-unrelated-histories
git diff master..staging