Default Commands
taking a copy of remote repository and initializing a local:
Retrieving changes from remote branch to local:
Integrate fetched changes from remote into current local branch:
Same as fetch and merge:
Add files to staging:
Create a snapshot from staging files:
Send changes from local branch to remote:
GIT COMMANDS
git checkout <file> # undo changes in a file to recent git push change
git restore --staged <file name> # restore a staged file
git revert HEAD # revert a commit | this would be saved as history in a commit
git reset --hard <commit_id> # go back in time to a commit_id and remove future history/commits | won't create a commit in timeline
Initialize a GIT repository
Create repository on github without a readme
follow on screen commands