I\'m using terminal for mac and running the line
git push origin master
It asks me for my github.com username and password every time,
is t
Setup your ssh keys appropriately with empty passphrase and you need not enter the credentials: http://help.github.com/mac-set-up-git/
From your description of things, it sounds like your [Project Dir]/.git/config file is setup with the line url = https..., and not url = git@github.com.... Can you check that file to see what it says? It'd be great if you could post your entire "remote origin" section. It probably looks something like this:
[remote "origin"]
url = https://github.com/atheycreek/churchdeploy.git
fetch = +refs/heads/*:refs/remotes/origin/*
but needs to use ssh instead of http like this:
[remote "origin"]
url = git@github.com:atheycreek/churchdeploy.git
fetch = +refs/heads/*:refs/remotes/origin/*
setup your API token as well as your SSH credential (password less though preferably with password with an agent)
The link provided in other answer provides instructions for this as well. Specifically look for step 2 at the bottom.
Using an empty passphrase is considered bad practice. Quoting Help.Github:
Passwords aren’t very secure, you already know this. If you use one that’s easy to remember, it’s easier to guess or brute-force. If you use one that’s random it’s hard to remember, and thus you’re more inclined to write the password down. Both of these are Very Bad Things™. This is why you’re using ssh keys.
But using a key without a passphrase is basically the same as writing down that random password in a file on your computer. Anyone who gains access to your drive has gained access to every system you use that key with. This is also a Very Bad Thing™. The solution is obvious: add a passphrase.
The right solution here is to use ssh-agent - this way, Git will ask for your password only once per session. See this page for pointers on how to set it up on your system.
If on OSX, you should be able to use the osxkeychain helper. You can check to see if you already have it installed by typing:
git credential-osxkeychain
If you get a message saying that's not a valid git command, you can install it by doing:
curl -s -O http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
chmod u+x git-credential-osxkeychain
sudo mv git-credential-osxkeychain `dirname \`which git\``
Then tell git to use it with:
git config --global credential.helper osxkeychain
You will be asked to provide your credentials once more the next time you do a pull/push. From then on, git should remember your info.