Some common commands using git

1. Remove git: rm -rf .git /

2. Review the results: ls -al

3. syntactic sugar (see list): ll

4. Add a local repository (the end point represents add all): git add.

5. Submit to the local repository: git commit 'message alerts of' -m

6. Add the remote repository: git remote add origin (+ remote repository address)

7. uploaded to a remote repository (if error, just behind the increase in mandatory submission -f): git push origin master

 

Learn git website: Liao Xuefeng

Guess you like

Origin www.cnblogs.com/linck/p/11489488.html