Lỗi git push –set-upstream origin coder1

user@ZOOOG-16 MINGW64 ~/Desktop/chan/project/twitterapi (coder1)
$ git push
fatal: The current branch coder1 has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin coder1

Sửa bằng cách chạy dòng lệnh sau:

$ git config --global push.default current
user@ZOOOG-16 MINGW64 ~/Desktop/chan/project/twitterapi (coder1)
$ git config --global push.default current

user@ZOOOG-16 MINGW64 ~/Desktop/chan/project/twitterapi (coder1)
$ git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 271 bytes | 271.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/chungderise/TwitterAPI.git
   31edb08..833d1b7  coder1 -> coder1

Ok con dê

Chào mừng bạn đến với blog của tôi! Đây là nơi tôi chia sẻ những trải nghiệm, suy nghĩ và kiến thức mà tôi học được trong cuộc sống và công việc. Hy vọng bạn sẽ tìm thấy điều gì đó hữu ích và thú vị tại đây.

Design a site like this with WordPress.com
Get started