Git Important Commands - Version Control System Important Commands
how to undo last Committed files in git
git reset HEAD~
How to Chnage HTTP to SSH
- Change: https://github.com/WEMP/repo.git
- to: https://*username*@github.com/WEMP/repo.git
- You can also do
git remote set-url origin git@github.com:user/repo.git
git remote set-url origin git@github.com:user/repo.git
How to remove local untracked files from the current Git branch
git clean -f (removed all migrations fiels)
git clean -fd (removed all directories)
Comments
Post a Comment