Git-branch Questions
Ad
I made changes while on the wrong branch. I haven't committed yet. How do commit my changes to the intended branch?
i'm on branch a and made changes. the changes have not yet been added or committed. these changes are intended for branch
Restore a folder that's deleted in the local branch
I'm trying to restore a folder i deleted in a local branch but i am having trouble doing it. i have created a new branch from main and deleted one
Can I use git to find which commit is needed to fix a branch?
I have a git tree which looks like this: master (test passes) | | | stable (test fails) | | | / +--- | there
git checkout branch without checking files
I have huge size of git repo in my local system with 10 different branches, in those 10 branch the master repository is around 2 gb. when i switch
Git switching branch policy in IntelliJ
I have created two branches for a project i'm working on with git in intellij. the first branch (a) i was working on modifying a file (call it
Local uncommited changes in master. Need to switch to another branch
I am webdev intern and i have done some work in the master branch. and i have done a week's work without realising that i am in the master
Transition from TFVC Path-Based Branches to Git
We currently have one tfvc repository with a lot of path-based branches at the folder levels. for example, tfvc_repo product a
Can GIT track a file only in one branch but not on other?
Im using gitflow as git workflow. and i program for electronic microcontrollers. while im on the development branch i dont need the
git clone specific list of branches
I want to clone a list of branches from remote repo. what is the best way to do that without fetching everything? i saw solutions for cloning one
Git: How can I split a branch by file (not by commit)?
Bottom line: i want to split up a pull request into two smaller pull requests with different subsets of files. i do not
Ad
Git: how can I retrieve all branches that are protected?
I want to be able to get all branches from a project that are protected. the protection is done in gitlab, so i wasn't sure if there's api exposed
Git merging branches
I am trying to merge two branches into a single new branch, and all three branches have a single parent branch in common. two branches
Delete remote branch in SAP Web IDE
I created a remote branch but with the wrong name and now i want to delete the remote branch. the problem is i don't now how because if i
Can I create a new repository out of an existing repository but rename it?
I have created a new project locally and it is a template application that has some base code (for upcoming projects), and i pushed it to a remote
Issue adding new local project to a new remote repository
I am having this wierd issue with git. this is what i did: i created a new project in vs community 2017 from git bash, i
how to make git config respect the branch remote push setting
I'm working with a forked repo, using standard naming (my fork is "origin", and upstream is "upstream"). i'd like to set up two local
Make a snapshot of working directory with git
I sometimes need to make a snapshot of the current (possibly dirty) working directory. git stash save -u is very similar to what i
SourceTree not using git-ref-format branch name when pushing - is my workaround correct? Is there a better way?
So i appear to be experiencing something similar to this known bug:
git checkout to a branch takes long time
I am on ubuntu 17.10 and i am using git (version 2.14.1). whenever i create a branch from master and try to checkout to it (or to the master from
git remote prune origin does not delete the local branch even if its upstream remote branch is deleted
This is a common use-case for me, i clone a repository, checkout a branch, do some code changes, make multiple commits, then when it's stable, i
Need GIT commands since I don't want to risk doing it
This is what my senior mailed me. due to the merge issue on remote ‘develop’ branch. after new release, i deleted the old ‘develop’
Ad
Why are changes in git branch are getting copied to the main branch automatically?
I am trying to use branches to work on different parts of my project. let's say i am on the master branch and i have a file test1 on
How to create a branch in a git repository right from GitBash prompt?
I was looking for a command that can be used from gitbash command line to create a branch in my git repository. i can do that from the online git
Confusion about Git command: git diff origin <branch> HEAD
1 to 2 weeks ago, i found a reference on the web, saying that this command: $ git diff origin <branch> head
How do I combine Git repositories?
I am trying to combine 2 repositories into 1, by grafting the history. i would assume this is the easiest way to obtain a clean linear
Master branch is empty at remote Github
I have a local github repo and i pushed repository to remote with below command: git push origin --all now on
Update master branch using another branch which doesn't have all the files master contains?
I am new to git and this is my situation: i have two branches: master - contains
macOS git branch displays branches in less
I'm running git version 2.16.1 under macos high sierra 10.13.3 and when i use git branch, the result is displayed
how to list all 'active' branches in git containing unmerged commits
I'm struggling to make sense of the history of a couple of very large repositories that have hundreds of (old) branches which never have been
Prevent git from creating branches that use names of remotes?
I often accidentally checkout remote tracking branches incorrectly: git checkout -b origin/fixbugs the
How to remove git remote branches locally which has been deleted online?
After a successful merge request , the branch get's deleted on the gitlab but it still exist on my local machine so how can i remove that branch
Git Parameter Alias not working
So i am trying to create an alias for something i do in git all the time: create a new branch based on my develop branch but that doesnt track it.
Ad
How to see all past branches in the git remote?
I would like to list all branches, even those what already removed in a remote (origin). the main point that i would like to see event the removed
Is it possible to rebase onto the middle of a branch (connecting both ends)?
Not a duplicate! all the vanilla rebase examples an fancy diagrams i see show how to rebase a branch onto the top of
Default behavior of "git push" without a branch specified
I use the following command to push to my remote branch: git push origin sandbox if i say git
Git push -f on branch affecting master
Let's say i make a branch off master and make some commits to my branch, commit1, commit2. in the meantime, two other people merge two pull
git: how to be able to switch branches again
I had a lot of uncommitted changes, which is bad practice. i have tried to slowly commit all my important changes. i was trying to
Merge a commit from a branch in repositoryA to a branch in repositoryB
Assuming i have two repositories called repositorya and repositoryb. i need to merge a commit abcdefgh
How do I create a branch without cloning?
I'd like to automate the creation of feature branches that match in multiple projects. i can script this but to speed things up it would be nice
How do I create a branch using git and repo tools while working with android code
I downloaded the android code from source.android.com. then i created a new branch from this code: repo start mybranch
Why does git perform fast-forward merges by default?
Coming from mercurial, i use branches to organize features. naturally, i want to see this work-flow in my history as well. i started my
Git branch command behaves like 'less'
When i use the git branch command to list all branches, i see the output of git branch | less. the command
Ad
How to undo merge of master branch?
I'm new github so please forgive what may seem like an obvious question. i have an experimentation branch which is 24 commits ahead
Git best practice with new database
Question regarding git best practices. when making a major new version of a project (in my case it's a codeigniter project) i am faced with two
Cannot git pull in a new branch
I'm working on a new branch created by a colleague. i have committed all the changes and when i try to git pull, it gives me an
Git : Merge multiple commits from one branch into another
I have following use case. i have a mainline branch. created new branch(dev) from mainline. did
How many branches should I have ? How do I know it?
We have 1 master branch before we released to customer. now, we're at the bug fixing state, and we also want to
git checkout: detailed meaning of "theirs" and "ours"
The git checkout documentation says:
Ad
Blog Categories
Ad