Skip to main content
Mark Longair's user avatar
Mark Longair's user avatar
Mark Longair's user avatar
Mark Longair
Head of Development at Kiln Enterprises
  • Member for 14 years, 7 months
  • Last seen this week
5430 votes
Accepted

How do I update or sync a forked repository on GitHub?

3116 votes
Accepted

Hard reset of a single file

2650 votes
Accepted

Is there a way to cache https credentials for pushing commits?

2029 votes
Accepted

How to avoid having to do "git branch --set-upstream", and instead default to automatically setup remote tracking?

1931 votes
Accepted

Resetting remote to a certain commit

1474 votes
Accepted

Remove directory from remote repository after adding them to .gitignore

1465 votes
Accepted

How do I use 'git reset --hard HEAD' to revert to a previous commit?

1125 votes
Accepted

Get the short Git version hash

1024 votes

How do I squash my last N commits together?

1018 votes
Accepted

How to find the Git commit that introduced a string in any branch?

984 votes
Accepted

Git remote branch deleted, but still it appears in 'branch -a'

862 votes
Accepted

Git conflict markers

854 votes
Accepted

Specify an SSH key for git push for a given domain

797 votes

How to get MD5 sum of a string using python?

733 votes
Accepted

Git merge errors

637 votes
Accepted

moving committed (but not pushed) changes to a new branch after pull

618 votes
Accepted

Extract a subset of key-value pairs from dictionary?

617 votes
Accepted

Git error: src refspec master does not match any

551 votes

BeautifulSoup getting href

540 votes
Accepted

How do I make a branch point at a specific commit?

506 votes

Issue with adding common code as git submodule: "already exists in the index"

465 votes
Accepted

Update git commit author date when amending

463 votes
Accepted

How do you use "git --bare init" repository?

459 votes
Accepted

How to diff one file to an arbitrary version in Git?

451 votes
Accepted

What are the differences between double-dot ".." and triple-dot "..." in Git diff commit ranges?

408 votes
Accepted

Clone contents of a GitHub repository (without the folder itself)

361 votes
Accepted

(Mac) -bash: __git_ps1: command not found

330 votes
Accepted

Using variables inside a bash heredoc

330 votes
Accepted

How to check if there's nothing to be committed in the current branch?

324 votes
Accepted

How to use mod operator in bash?

1
2 3 4 5
25