Upload code:
CD TPS/DEVICES/M8
GIT init #//initialization
git Add. #如果是. means to upload files in all directories, which can be a file
Git commit-m ' version 1.0 '
Git remote add Origin https://github.com/jiugui1/TOS.git
Git push Origin master-f
#[email protected]:~/tos/tps/devices/m8$ git push Origin master-f
Username for ' https://github.com ': [email protected]//Enter GitHub account
Password for ' https://[email protected] @github. com '://Enter the GitHub login password
If you enter Git remote add origin [email protected]:d Jqiang (GitHub account name)/gitdemo (project name). Git
Tip error Message: Fatal:remote origin already exists.
The solution is as follows:
1. First enter GIT remote RM origin
2. Re-enter Git remote add origin [email protected]:jiugui1/tos.git
You won't get an error!
git filter-branch--tree-filter ' rm-f webroot/web-inf/lib/*.jar '--tag-name-filter cat----all
Git push Origin--tags--force
Git push Origin--all--force
Big file kills people!!! Unable to upload files larger than 100M!!!
git rm--cachedbackup/20151119143722/package/m8.zip
Uploading code to GitHub under Linux