git 推送本地项目到远程库
1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/haha
$ git init
Initialized empty Git repository in E:/mozq/00store/01/haha/.git/
1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/haha (master)
$ git remote add origin git@192.168.1.254:devops/haha.git
1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/haha (master)
$ git remote -v
origin git@192.168.1.254:devops/haha.git (fetch)
origin git@192.168.1.254:devops/haha.git (push)
1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/haha(master)
$ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/haha(master)
$ git branch -v
- master 1c3869e 1st
1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/haha(master)
$ git push origin master
Enumerating objects: 25, done.
Counting objects: 100% (25/25), done.
Delta compression using up to 6 threads
Compressing objects: 100% (15/15), done.
Writing objects: 100% (25/25), 7.75 KiB | 1.94 MiB/s, done.
Total 25 (delta 0), reused 0 (delta 0)
To 192.168.1.254:devops/haha.git
- [new branch] master -> master