Mac terminal git, svn commit code step

git commit step

git clone https://github.com/......

1.cd to the corresponding directory

2.git status to view the current status, including modified files and add files

3.git add. Changes will be added to the index file can also use git add [path] to add a single

4.git commit to submit documents, editing module will pop up, click [i] to enter edit mode, click esc to exit edit mode, then execute [shift +;], perform [wq] to save

5.git fetch retrieve these updates locally

6.git branch -a branch View

7.git rebase -i origin / branch beginners avoid mistakes, you can always rebase, I was on the origin, you can see your path on the first line branch

8.git push origin HEAD: refs / for / branches merge

 

svn commit step

svn checkout https: // svn ....... ( svn repository address) to apply to the local checkout
1. update the local
svn Update
2. upload files
such as adding a file in the directory version "datacount.php"

Switching to the next directory version ~ 1 ~
input path cp /User......datacount.php ./ terminal located in the datacount copied to the appropriate version of the application

svn add datacount.php

svn commit -m"add new file"

3. Update code and submitted to the server
after the code is modified locally, at the input terminal

svn commit -m"xxxxxxxxx"

Guess you like

Origin www.cnblogs.com/banma/p/12343903.html