简体   繁体   中英

How to push to branch in Github with personal token?

I am trying to push to my branch using personal token but it says Everything up-to-date which is not true. While being in my branch test_branch I ran:

git remote set-url origin https://${GIT_TOKEN_TEST}@github.com/user/repository.git

then:

git push -u origin test_branch
Branch 'test_branch' set up to track remote branch 'test_branch' from 'origin'.
Everything up-to-date

what I am doing wrong?

尝试git config user.password YOUR_TOKEN

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM