Git cheatsheet
Updated:
Here are some useful tips to use git.
Git
add
git add {filename/dirname}
status
git status
diff
git diff {filename}
Branch
Making a branch
git branch {branch_name}
Checkout
git checkout {branch_name}
Remote repo
Checking remote
git remote -v
Setting remote url
git remote set-url {remote repo alias} {url of remote}
git remote set-url origin https://abc.git
Leave a comment