Skip to content

git reset not affecting gin commit  #313

@jcolomb

Description

@jcolomb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions