G-Node / G-Node/gin-cli

git reset not affecting gin commit

Open
#313 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
14
Forks
7
PR merge metrics
No merged PRs in 30d

Description

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 ..." to begin tracking and save the current state)
(use "gin upload ..." 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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.