Common commands of svn and git are commonly used: 1. gitpull // indicates updating the latest code on the server to the local device. 2.1, gitadd file path strength and file name 2.2, gitcommit-m & quot; comment & quot; 2.3, gitpush // The above three instructions complete code submission to the server. 3,... svn and git common commands git commonly used: 1, git pull // indicates updating the latest code on the server to The Local. 2.1. git add file path strength and file name 2.2, git commit-m "comment" 2.3, git push // The above three commands complete code submission to the server. 3. git clone git @ code strength on the server // download the code from the server to the local machine 4. git config -- global user. name username // Configure username 5, git config -- global user. email user_email // you only need to execute the preceding two email addresses once. 6. ssh-keygen-t-rsa-B 2048 // Generate the file generated by the ssh key in ~ /. Ssh/id_rsa.pub 7, git branch-a // view all git branches 8.git branch-B branch names // create git branch 9, git checkout branch name // switch branch 10, git checkout file path // download the file to the local machine 11, git push origin branch name // submit updates to branch 12, git status 13, git revert 14, git submodule init 15, git submodule update svn: svn add file path strength // use git revert file path strength when adding files // cancel svn ci-m "comment" change file path strength and file // update local code to the server svn update/ /update the latest server code to the local device, (-r) you can specify the version to update. Svn-import-m "comment"./uboot http://192.168.1.6/svn/ Server path/uboot // Upload bsp to server svn co http://192.168.1.6/svn/ Server path // download the server code to the local device. (-r) you can specify the version to download. Svn ls http://192.168.1.6/svn/ Server path // view the server code directory and file svn log // view svn's log svn merge-r 46: 54 http://192.168.1.6/svn/ Server path // synchronize version 54 on the server to local 46 svn cp http://192.168.1.6/svn/ Server path http://192.168.1.6/svn/ Server path 1 // create svn branch svn diff-r 45: 46 // compare the differences between version 45 and 46.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.