Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git reset not affecting gin commit #313

Open
jcolomb opened this issue Dec 22, 2021 · 0 comments
Open

git reset not affecting gin commit #313

jcolomb opened this issue Dec 22, 2021 · 0 comments

Comments

@jcolomb
Copy link

jcolomb commented Dec 22, 2021

Want to undo a "gin commit", tried git reset --soft HEAD^, which does work as git put the files back into files to add. gin status on the other hand still shows the files as LC.

When doing git reset --soft HEAD^ and erasing the data, it looked clean. but at the next gin upload, the data was put back in. And gin seem to try to upload it. the commit message was also not used during the upload of the one file (the upload worked).

any cues?

juliencolomb@juliens-MBP 001_histologydata % gin status
Synced:

	LICENSE
	README.md

Untracked:
  (use "gin commit <file>..." to begin tracking and save the current state)
  (use "gin upload <file>..." to save the current state and upload directly)

	.DS_Store
	config.yml

Summary
   OK: 2   ??: 2
juliencolomb@juliens-MBP 001_histologydata % gin commit config.yml .m add config file
:: Adding file changes
 Added to git "config.yml" OK 
 Writing filename metadata "config.yml" OK 
:: Recording changes OK
juliencolomb@juliens-MBP 001_histologydata % gin upload
:: Uploading
 Compressing OK  
 Uploading git files (to: origin) OK  
 send-pack: unexpected disconnect while reading sideband packet
Connection to gin.g-node.org closed by remote host.
fatal: the remote end hung up unexpectedly
Connection to gin.g-node.org closed by remote host.
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
  Pushing to origin failed.
sync: 1 failed
 
[error] 1 operation failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant