Revert all changes :
git reset --hard HEAD
Get others committed code :
git pull
Commit you code :
git commit -m "type your meesage"
Send your code to git repo :
git push
If you want to see which files will be deleted you can use the -n option before you run the actual command:
git clean -n
Then when you are comfortable (because it will delete the files for real!) use the -f option:
git clean -f
git reset --hard HEAD
Get others committed code :
git pull
Commit you code :
git commit -m "type your meesage"
Send your code to git repo :
git push
If you want to see which files will be deleted you can use the -n option before you run the actual command:
git clean -n
Then when you are comfortable (because it will delete the files for real!) use the -f option:
git clean -f
Comments
Post a Comment