I wonder if there is any way of cherry picking with ours/theirs strategy. On other words, I want to cherry pick multiple commits from dev branch into main branch with below commands, git cherry-pick HASH1 HASH2 HASH3 -n This command is supposed to take all referred commits and prepare unstaged changes if no conflicts. However, […]
So I’ve done an initial commit on my files from my PC to GitHub with git checkout -b [branch] and git add . and git commit and all that. I’ve now made a change to that file, how can I update that file on GitHub and add a commit message? I tried git add on […]
I’m working on my copy of the perl repository on github and created a branch titled “perl-d-add-tests-2” for doing some changes, where I have commited some commits. I submitted these commits upstream and they were applied into “blead” (the main perl development branch). I pulled from the upstream repository, and did a “git merge” from […]
I would like to know if there is any command available to get the SHA id of a particular file on a given specific git branch on the GIT remote server? Thanks, Srinivas
How can I clean up directory after compiling source codes with ‘make’, to do ‘git commit‘? Or what you do when commiting git?
I have a remote git repository and I am trying to commit and push my latest changes. The problem is that everything commits fine except for project.pbxproj. Xcode does not complain. It just acts as if all committed with no issues. But when I push it complains that there are uncommitted changes. So I try […]
Given this git tree: A <— B <— C (HEAD, master) is it possible to put the tree into this state: A <— B (HEAD, master) <— C (There are no branches or tags other than master.) In other words, can a commit (C) exist without either being a commit pointed to by a branch […]
So I have: master +commit1 +commit2 +commit3 myBranch +commitA +commitB +commitC I want to pick commitB in myBranch and merge it to master branch, what should I do?
if another developer branches out on branch DEVELOPER_A, and makes a lot of commits on that branch, when he’s done, I want to merge his work onto master. but I don’t want all his small commits to show up on the master branch history, and only care about the last commit. so is there a […]
I have master branch where i commited my last change now i run git branch test checkout test i deleted file README in the project folder then i run git checkout master and there is no README file anymore. I thought when you create new branch its like creating new commit?