Tag: git

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
56 votes
30 answers
2.9K views
Calculate distance between 2 GPS coordinates

How do I calculate distance between two GPS coordinates (using latitude and longitude)?

avatar
Stacia
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
447 views
Calculate distance between two latitude-longitude points? (Haversine formula)

How do I calculate the distance between two points specified by latitude and longitude? For clarification, I&

avatar
Forrest
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
51 votes
15 answers
1.7K views
Link and execute external JavaScript file hosted on GitHub

When I try to change the linked reference of a local JavaScript file to a GitHub raw version my test file stop

avatar
Margo
0 1 0 9
asked 07 September, 2021
60 votes
5 answers
942 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
58 votes
4 answers
382 views
How can I reference a commit in an issue comment on GitHub?

I find a lot of answers on how to reference a GitHub issue in a git comment (using the #xxx notation). I'

avatar
Rudolf
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
58 votes
9 answers
1.9K views
How to state in requirements.txt a direct github source

I've installed a library using the command pip install git+git://github.com/mozilla/elasticutils.git whi

avatar
Keila
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
530 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
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
3K 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