GIT

Git is an open-source distributed version control system (DVCS). Use this tag for questions related to Git usage and workflows. Do not use this tag for general programming questions that happen to involve a Git repository.

51 votes
16 answers
2K views
How can I make Sublime Text the default editor for Git?

I have a problem setting Sublime Text 2 as the core.editor with git. I've read through every post I coul

avatar
Robyn
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
1.4K views
How can I set up an editor to work with Git on Windows?

I'm trying out Git on Windows. I got to the point of trying "git commit" and I got this error: Termin

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
60 votes
19 answers
2.1K views
GitHub "fatal: remote origin already exists"

I am trying to follow along Michael Hartl's Rails tutorial but I've run across an error. I signed

avatar
Deedee
0 1 0 9
asked 07 September, 2021
60 votes
5 answers
965 views
Change name of folder when cloning from GitHub?

When I clone something from Github, it creates a folder with the same name as the app on my computer. Is there

avatar
Serina
0 1 0 9
asked 07 September, 2021
60 votes
13 answers
2.4K views
Why is a git 'pull request' not called a 'push request'?

The terminology used to merge a branch with an official repository is a 'pull request'. This is conf

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
55 votes
13 answers
2.3K views
Git push existing repo to a new and different remote repo server?

Say I have a repository on git.fedorahosted.org and I want to clone this into my account at github to have my

avatar
Rudy
0 1 0 9
asked 07 September, 2021
56 votes
27 answers
1.9K views
GitHub: invalid username or password

I have a project hosted on GitHub. I fail when trying to push my modifications on the master. I always get the

avatar
Juliane
0 1 0 9
asked 07 September, 2021
51 votes
16 answers
2.3K views
Can you get the number of lines of code from a GitHub repository?

In a GitHub repository you can see “language statistics”, which displays the percentage of the project tha

avatar
Stacia
0 1 0 9
asked 07 September, 2021
61 votes
10 answers
2.2K views
git - remote add origin vs remote set-url origin

I create a new repository: git init echo "# MESSAGE" >> README.md git add README.md git commit -m "first

avatar
Sena
0 1 0 9
asked 07 September, 2021
65 votes
21 answers
2.9K views
Remote origin already exists on 'git push' to a new repository

I have my project on GitHub at some location, [email protected]:myname/oldrep.git. Now I want to push all my cod

avatar
Thurman
0 1 0 9
asked 07 September, 2021
56 votes
14 answers
553 views
Import existing source code to GitHub

How can I import source code from my computer to my GitHub account?

avatar
Nereida
0 1 0 9
asked 07 September, 2021
61 votes
6 answers
1.1K views
Pull request vs Merge request

What is the difference between a Pull request and a Merge request? In GitHub, it's a Pull Request while i

avatar
Louetta
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
1.3K views
SSH Key - Still asking for password and passphrase

I've been somewhat 'putting up' with Github always asking for my username and password when I c

avatar
Dario
0 1 0 9
asked 07 September, 2021
58 votes
5 answers
1.3K views
How to update a pull request from forked repo?

So I first forked a repo and then made a commit to that forked repo. I then opened a pull request. The pull re

avatar
Lorenzo
0 1 0 9
asked 07 September, 2021
52 votes
5 answers
3.1K views
When does Git refresh the list of remote branches?

Using git branch --all shows all remote and local branches. When does Git refresh this list? On pull/push? An

avatar
Solomon
0 1 0 9
asked 07 September, 2021
56 votes
8 answers
2.9K views
Updating a local repository with changes from a GitHub repository

I've got a project checked locally from GitHub, and that remote repository has since had changes made to

avatar
Chaya
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
2.5K views
git error: failed to push some refs to remote

For some reason, I can't push now, whereas I could do it yesterday. Maybe I messed up with configs or som

avatar
Boyd
0 1 0 9
asked 07 September, 2021
63 votes
9 answers
814 views
What is the difference between GitHub and gist?

What is the purpose of gist and how is it different from regular code sharing/maintaining using GitHub?

avatar
Wilber
0 1 0 9
asked 07 September, 2021
59 votes
9 answers
2.1K views
Remove directory from remote repository after adding them to .gitignore

I committed and pushed some directory to github. After that, I altered the .gitignore file adding a directory

avatar
Shantay
0 1 0 9
asked 07 September, 2021
55 votes
12 answers
843 views
How to git-cherry-pick only changes to certain files?

If I want to merge into a Git branch the changes made only to some of the files changed in a particular commit

avatar
Kisha
0 1 0 9
asked 07 September, 2021