The company will work in a number of frequently used instructions to submit code management, the following is a series of steps:
(Special tip: To prevent frequent submit code that will let you verify your user information, you need to advance with a good computer keys)
First, you need to on your computer by copying the code the company line on your own local
git clone "address line of the company" will line ------------------------------------- local code is cloned into
Second, you need to enter your clone file down the project folder, execute commands under the project directory:
Check your local git branch ----------------------------------- all branches
git checkout "branch name" ------------------------------- create a local branch
git checkout -b "branch name" ------------------------------------ create a branch and switch
git pull origin "branch name" -------------------------------------- pull newest online the code to local
Second, you can develop a program on a local branch that you created when you developed, you can execute the following code:
git status ------------------------------------------- view your modified state files (git display a file, it means you have modified this file)
git add. ----------------------------------------------- - submit all your files to the staging area
git commit -m "write the change log" ----------------------------------------- submit your modified log (to facilitate future viewing and back version is used)
git pull origin "branch name" -------------------------------------- pull newest online the code to local