0
votes
0answers
31 views

GitHub History Changes on Every Commit

So my team and I are having a very strange issue with Git / GitHub. (No worries, it's a private repo) Every time one of us commits, the commit history changes. This isn't a matter of different ...
1
vote
1answer
20 views

Does git rebase update commits in other local branches?

I know I can test this experimentally, but having discussion would be nice. If I have a local head on (local branch) master that has diverged from the remote master, I tend to do a git pull --rebase ...
0
votes
0answers
20 views

How to push the amended commit message to remote

I followed this thread on how to amend the commit message. It went well. But in the previous commit I pushed the updates to remote as well. Now once I changed the commit message, its rejecting the ...
-1
votes
0answers
19 views

Git hook to create archive of changes on commit

A particular client does not give me access to their web server, so I need to send all updates to them as a zip. How can I set up a Git hook that will create a zip archive of the latest commits that ...
0
votes
1answer
35 views

github - how to remove commit from branch

I have read a lot of questions and answers which could be related to my question, but I can't find an answer. Maybe because I'm not experienced git user. Then I'm sorry and would be grateful for links ...
1
vote
2answers
16 views

Taking the changes of a specific file from a past commit and putting it in a new branch

a while back I changed a file. today I want to add these changes to a few branches. The thing is that the commit of which that file was changed also include other files, which I don't want to be ...
0
votes
1answer
13 views

Referring to the previous/next commit in git?

I have seen git commands use a syntax such as HEAD~, but I haven't been able to find this syntax in the Git Reference Manual. Here is what I have understood: <commit>~<n> refers to the ...
0
votes
0answers
50 views

GIT push not pushing commits to remote

I have been working on a git repository and have been pushing my local changes to a remote server all the time... up until recently. When I do a git push, it says that everything is up-to-date. In ...
1
vote
0answers
71 views

Git commit returns “nothing to commit”

I am following instructions from https://devcenter.heroku.com/articles/facebook#what_is_heroku I have edited the file once already and pushed the changes successfully to the app. But when I tried to ...
0
votes
1answer
29 views

git: How to get the latest commit on a specific file, regardless of branch?

I have this big repository containing different modules, which should have been broken down in different repositories, one for each module. Sometimes I created a branch, say featbranch, in the repo to ...
0
votes
1answer
24 views

how to merge different commit in git log history

let's say we have commits 1->2->3->4->5 I thought the history might be too long, I want the log to merge 1, 2 and 3 into one, say, 1'->2->3->4->5 how can I do this, should I use rebase? it seems that ...
0
votes
1answer
43 views

Git/Github allow collaborators but keep control

I want to allow some collaborators on one of my github repos, however I would like to limit them to their own Branch. There's only a handful of collaborators, and limiting them to their own branch ...
0
votes
3answers
41 views

How do i remove the latest commit from my repo?

I have made some error with my latest commit to my github repo. How can i delete tha latest one? Do i use this command: git reset --hard HEAD^ for remove the latest one? and then: git push ...
2
votes
1answer
27 views

How to recover a merge commit after a rebase on the same commit?

Suppose this: mkdir test; cd test echo "1" > file1; git init; git add .; git commit -m "initial - file 1" # 1st commit on master echo "2" > file2; git add .; git commit -m "file 2" ...
1
vote
2answers
24 views

How to take my local commits from master and place them in a new branch

I've created some changes to a git repo, and committed them to masterĀ (I have NOT pushed the changes up to GitHub, however). What I need to do now, is create a new branch, and move my commits over to ...

1 2 3 4 5 31
15 30 50 per page