其他分享
首页 > 其他分享> > git 推送本地项目到远程库

git 推送本地项目到远程库

作者:互联网

git 推送本地项目到远程库

1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/SmartCard_MS
$ git init
Initialized empty Git repository in E:/mozq/00store/01/SmartCard_MS/.git/
1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/SmartCard_MS (master)
$ git remote add origin git@192.168.1.254:devops/smart_card.git

1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/SmartCard_MS (master)
$ git remote -v
origin  git@192.168.1.254:devops/smart_card.git (fetch)
origin  git@192.168.1.254:devops/smart_card.git (push)

1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/SmartCard_MS (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/SmartCard_MS (master)
$ git branch -v

- master 1c3869e 1st

1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/SmartCard_MS (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/smart_card.git

- [new branch]      master -> master

标签:git,01,SmartCard,mozq,master,推送,00store,远程
来源: https://www.cnblogs.com/mozq/p/11772764.html