[aur-general] Can't git push, 'detached HEAD' state
Hi, I can't git push in a pkgbuild I have recently adopted and don't know how to fix this. Logs for git clone and git push can be seen here: https://bin.disroot.org/?5bcc8b5042367adc#5mWdBewwCSZ3UrqvArYpe3rCfey5uEK85D... https://bin.disroot.org/?da0c1f97d7791bec#DLKBzdobn82V6zs3tS1dNy692ed6CMfa2T...
On Wed, Sep 01, 2021 at 06:47:36PM +0200, AUR General Requests wrote: >Hi, I can't git push in a pkgbuild I have recently adopted and don't >know how to fix this. - End of Quote - Hi, you should be good to go after `git checkout master`, and be able to push. If you already made changes in the detached HEAD state, you'll need to re-apply them to `master`. _Cheers !_ -- Kr1ss
Il 01/09/21 18:59, Kr1ss via aur-general ha scritto:
you should be good to go after `git checkout master`, and be able to push.
Solved using `git checkout master`, thanks!
On 01/09/2021 18.47, Fabio Loli via aur-general wrote:
Hi, I can't git push in a pkgbuild I have recently adopted and don't know how to fix this.
Logs for git clone and git push can be seen here:
https://bin.disroot.org/?5bcc8b5042367adc#5mWdBewwCSZ3UrqvArYpe3rCfey5uEK85D...
https://bin.disroot.org/?da0c1f97d7791bec#DLKBzdobn82V6zs3tS1dNy692ed6CMfa2T...
If you have any uncommitted changes, stash or commit them. Then, from your detached HEAD state, rebase on origin/master, point the master branch to your new HEAD, switch to it, then push: git fetch git rebase origin/master git branch -f master HEAD git switch master git push Regards, xiretza
participants (3)
-
Fabio Loli
-
Kr1ss
-
Xiretza