Git - Useful Commands
Git - Useful Commands
- git checkout --orphan frontend-dev-vishwas -> Will create a new branch with no
commit history
- git rm -rf . -> Remove all files from the current branch
- git branch
- git reset node_modules/ -> Will reset the added files from node_modules
folder
- Renaming:
- git branch -m old_name new_name
- git push origin new_name
- git push origin --delete old_name
- git branch --set-upstream-to=origin/new_name
- Cloning particular branch:
- git clone --branch feature-dev-vishwas
https://github.com/impritichouhan/mycards-ui.git