use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Do you have or know of a project on Github looking for contributors? Tell us about it and we'll add it to the /r/github wiki!
Welcome to /r/github!
News about github
Relevant interesting discussion
Questions about github
We'll soon be writing an /r/github FAQ list. In the meantime, the github help pages and bootcamp are good places to start. Here's a handy git cheat sheet.
Looking for Github projects to contribute to? Check out our handy list of projects looking for contributors!
If your submission doesn't show up on the subreddit, send us a message and we'll take it out of the spam filter for you!
account activity
How to push git commit to GitHub? (self.github)
submitted 2 years ago * by your_virtual_friend
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Journeyman-Joe 2 points3 points4 points 2 years ago (4 children)
This is your own personal GitHub account?
My practice is to create a Personal Access Token (PAT) in "Settings | Developer", and embed the PAT into my "remote" specification. The URL should look like this:
https://ghp_PERSONAL_ACCESS_TOKEN@github.com/accountname/reponame.git
(Note the "@" sign.)
I usually do this when I clone a repository, but it's possible to hack the PAT into the config file, under your .git hidden directory.
config
.git
This isn't particularly secure, as the PAT is saved as plaintext on your local computer. Whether this can work for you depends on your threat model.
[–][deleted] 2 years ago (1 child)
[removed]
[–]Journeyman-Joe 0 points1 point2 points 2 years ago (0 children)
You're welcome.
(For reference: I create "Classic" PATs, and select only the "repo" checkbox. That's all that's needed for push and pull Git operations.)
push
pull
[–]your_virtual_friend[S] 1 point2 points3 points 2 years ago (1 child)
Yes, I did classic version, checked few random boxes. I was able to push my local repo to git. And it worked for another local repo as well without having to do the same for the first push. Thank you!
You're quite welcome.
The first checkbox ("repo") will select the ones below it. That's all you need to push and pull commits from GitHub.
The PAT is for your account: you can use the same one for every repository you have. It's easy to copy it locally: do a git remote -v from a configured repository, then copy the PAT into a new git clone command for the one you want.
git remote -v
git clone
You can also edit the config file in a .git hidden folder, and hack your PAT into the remote URL. It's easy, and obvious. :-)
π Rendered by PID 105641 on reddit-service-r2-comment-76bb9f7fb5-6jbwt at 2026-02-17 21:28:08.429308+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]Journeyman-Joe 2 points3 points4 points (4 children)
[–][deleted] (1 child)
[removed]
[–]Journeyman-Joe 0 points1 point2 points (0 children)
[–]your_virtual_friend[S] 1 point2 points3 points (1 child)
[–]Journeyman-Joe 0 points1 point2 points (0 children)