1. Initialize the warehouse
git init
2.remote
git remote add origin warehouse address
3. Pull the Master branch from the remote branch and merge with the local master branch
git pull origin master:master
4. Submit the local branch to the remote branch
git push -u origin master
5. Add and submit existing projects for upload
git add -A
git commit -m ''
git push --set-upstream origin master
Read More:
- Git error when switching branches: Your local changes to the following files would be overwritten by checkout
- Git pull error: Your local changes to the following files would be overwritten by me
- [Solved] Git push error: failed to push some refs to ‘[email protected]:daisy_yangyang/fed-e-task-04-01.git‘
- [Solved] fatal: not a git repository (or any of the parent directories): .git
- Git error bad signature [How to Solve]
- [Solved] Cannot find command ‘git‘ – do you have ‘git‘ installed and in your PATH?
- Solve git upload file error [rejected] master -> master (fetch first) error: failed to push some refs to ‘
- Git-2.16.1.2-64-bit Error: cannot spawn git: Function not implemented
- AFTER THE GIT SOURCE CODE IS INSTALLED, AN ERROR IS REPORTED /USR/BIN/GIT: NO SUCH FILE OR DIRECTORY
- Solution of GIT pull code exception
- Git Error Resolution: errno:10054 Time out
- [Solved] git error – remote: http basic: access denied
- [Git] Solve git branch -M main error: refname refs/heads/master not found
- Push to origin/Master was rejected [How to Solve]
- Git error: unpack failed: error Missing tree [How to Solve]
- Problem solving / etc/ rc.local The boot entry of the file configuration is invalid
- Git Error: remote: HTTP Basic: Access denied [How to Solve]
- Git Push Error: error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
- [Solved] Git Error: OpenSSL SSL_read: Connection was reset, errno 10054和Failed to connect to github.com port 443
- [Solved] ERROR: Command errored out with exit status 128: git clone -q