Relative Content

Tag Archive for git

Removing commits from branch

I want to create new branch from my main.
I have about 50 pushed commits (it’s not last 50 commits in branch, they’re mixed with others commits) in my main branch that shouldn’t be in the newly created branch.
do you know how to achieve this?
I read about interactive rebase, but this option is disabled in my git:log in intelij. There’s any other option? There’s maybe option to squash some existing commits?

How to restore all files with only line ending differences in a git repo?

I’m working on Windows with core.autocrlf being true. A third party code generator generates files with LF line endings. Every time code is regenerated, git status shows that a large amount of files have changed, but most of them are only line ending changes (CRLF changes to LF). How to restore all those files with only line ending differences? Or, what should the config be so that git will ignore those line ending changes?

Managing multiple people working on a project with GIT

I’m very new to GIT/GitHub (as new as starting yesterday). I would like to know what is the best way to manage multiple people working on the same project with Github. Currently I’m managing one project with four developers.

Approaches to manage related binary files, apart from code [duplicate]

This question already has answers here: Binaries in source control (12 answers) Closed 11 years ago. I’m working on a website for a photographer, the whole code is just a few files, and whole repository is a few MBs without the actual photographs. But, when I add the actual photographs to git and commit, then […]

Will a git push be interrupted if my computer’s internet connection is dropped temporarily?

I am currently in the middle of pushing a commit that adds some very large files (tracked via git lfs) from a location with a particularly slow internet connection and I’m wondering what happens if carry it to a place with a better connection without suspending it (which is not possible with my OS of choice on my particular laptop model, even when I close the lid the laptop just keeps running). The wifi connection would be dropped when I am carry it from my current location to the one with better network speeds, but will that cause the push be interrupted, forcing me to start it again from the very beginning, or will it continue where I left off once I arrive at the new location?