Some small commands of git

A good memory is not as good as a bad writing.

git add . Add all changes

git add FILENAME Add or modify a file [fileName] 

git commit -m "This is a commit comment" Submit local changes

git rm -rf FILENAME remove a file or folder

git fetch --all remote pull

git reset --hard origin/master Force pull updates from the remote repository

git update-index --assumen-unchanged FILENAME ignore the modification of a file or folder git ignore

 

I'll add it later. . . . . .

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324858750&siteId=291194637