Preparatory work
First to configure SSH to operate the code, configure the operation please google.
1, check out the warehouse
git clone [email protected]:/path/to/repository
2. Enter the project catalogue
CD Project Path
3. Get the latest skeleton code
git checkout Master (switch branch)
Git pull (get the latest code)
4. Create a new development branch Myfeature
Git checkout-b myfeature
5, Save the change content
git Add. Save all changes (including new, modified, and deleted)
Git status View files that have changed
Git commit-m "code submission Information"
6, submit to the remote warehouse
Git push Origin master (push to Master branch, you can change the branch name)
7. Synchronization with the backbone
Git fetch origin
Git rebase origin/master
Tip
Git Branch View branches
Reference links
Git-Easy Guide
Git uses the canonical process
Git code Management Usage flow