-
Notifications
You must be signed in to change notification settings - Fork 1
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
Pushing selection of commits - GitKraken #35
Comments
Hi Matt I don't have much (any) experience using GitKraken so I'm not sure if I'd be of much help. If all else fails, I'm not sure, but would it be possible to work around this by creating a series of new branches, and reverting each back (as per here or here for example) step by step until you get to something you can push? Then you can work back through each branch, committing and pushing at each step, until you get back to your last version? Sorry if this isn't much help... J |
Hi Matt, I am not sure how to do this with GitKraken, but you can definitely push commits one by one from the command line. Stackoverflow has a good answer here. Each commit has its own ID, which you can tell git to push specifically. For example, a repository of mine has a commit with the following ID: 18f60772f1fa32d600c26aa0b3ced436fc1eb2e0. If I wanted to push it specifically, then I could do the following:
Normally, when pushing every commit up to the head branch, the command line would just be the following:
So to solve your problem with 1, you could look at your git log with the command line:
You will then get something like the following (ideally with better commit messages than my own).
Those massive numbers after
Followed by
Feel free to stop by the office if you need help doing this with the command line interface. Also, if big files are giving you trouble, and you don't want to track them anymore, it is also possible to remove them from your git history. |
Many thanks @jejoenje and @bradduthie! I think the pushing each commit individually via the command line is what I need, as I definitely want to keep tracking those files. I'll have a go myself, but I don't really use the command line so if it baffles me I may well swing by and beg some help Cheers! |
Hi all, Just in case anyone else runs into this issue, the solution suggested by @bradduthie worked. Details are:
Job done |
Quick -- edit, should be
Usually this is |
Hi all,
Apologies - this is quite a niche question, and seems like a silly one, but I can't find a solution online.
I use GitKraken for version control, and I have got myself into a situation where I can't push from my local repo (computer) to my remote repo (GitHub). This is because I have been producing lots of large files over the last few days, and committing them as I go, and I foolishly forgot to push regularly. So now I think the changes that I am trying to push constitute too large a chunk of files. When I try and push it times out and I get a message about my AOuth token for Github being invalid. I have received this message before, and it was to do with a push/pull being too large.
Possible solutions are:
select a subset of the new commits, and push them a few at a time. I can't seem to find a way to do this...
Could I just drag and drop the new files directly into the GitHub repo until the two repos match? This seems messy....
Any other ideas would be welcome!
Thanks
Matt
The text was updated successfully, but these errors were encountered: