You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
Issuing git.Repository.Push actually pushes the commits as expected, however, some internal state of the repository remains unset because issuing git status afterwards reports that the local branch is ahead of remote. The following example is put together using the geat tool based on go-git. It uses the following command to push the changes:
=> in . the state is modified on branch master
staged:
M cmd/common.go
M cmd/pull.go
➜ geat git:(master) ✗ geat commit -m "Minor option changes in the CLI API"
=> in . commited staged changes to hash acde7c3c209b1a18c4c962a195f06de5296573b4
➜ geat git:(master) geat push
=> in . pushed branch master to origin
➜ geat git:(master) geat status
=> in . the state is clean on branch master
➜ geat git:(master) git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
➜ geat git:(master) git push
Everything up-to-date
➜ geat git:(master) git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
The text was updated successfully, but these errors were encountered:
osklyar
changed the title
Upon repo.Push standard git still sees as unpushed
Upon repo.Push standard git still sees commits as unpushed
Jun 20, 2017
Issuing
git.Repository.Push
actually pushes the commits as expected, however, some internal state of the repository remains unset because issuinggit status
afterwards reports that the local branch is ahead of remote. The following example is put together using the geat tool based ongo-git
. It uses the following command to push the changes:Here is what happens:
The text was updated successfully, but these errors were encountered: