GIT
List of command which we are using daily routine
Before starting : Fork the upstream repo and make clone for local copy
- Status: git status
- Add: git add "FILE_PATH"
- Add all: git add .
- Commit: git commit -m "MESSAGE"
- Push: git push origin "ORIGIN_BRANCH_NAME"
- Force Push: git push -f origin "ORIGIN_BRANCH_NAME"
- Upstream/Origin Check: git remote -v
- Add Upstream: git add remote upstream "REPO_URL"
- Add Origin: git add remote origin "REPO_URL"
- Amend the commit: git commit --amend -C HEAD
- Fetch: git fetch upstream "BRANCH_NAME"
- Rebase: git rebase upstream/"BRANCH_NAME"
Link's
You can find most useful links below for your interview preparation - It's just a link to navigate further :).