I finally got a git account, my site is here. This page is about how to, but does not have any command runes. They are held elsewhere. This page was started in 2011 and I have returned to using git at several times over the years. I tidied up the page in Feb 2019 and Nov 2022, transferring some out of date text to comments. I moved the comments about GCM to another page. This page is mostly about github.
My page https://davelevy.info/wiki/using-git/ documents the old CLI, pre 2FA and will be amended to document using branches in git, and thus github.
This page is being updated to document how to use 2FA, well sort of. I was trying to get this to work, mainly on raspbian at the time and gave up since drag and drop still worked.. I returned in March 2024.
gh auth
When the first deprecated CLI logins, they produced a lot of very complicated documentation and solutions. It came to pass that simpletons like me were given a command line login interface
This issues a token which you enter into a logged in web session. It requires the installation of the gh package. I have a script in the ../installers folder, fetch-gh.
Some Links
I found these links
- This would seem to be the Git home page, and has a windows version download feature.
- Everyday GIT With 20 Commands Or So from http://kernel.org because its one of Linus’ systems.
- https://github.com/GitCredentialManager/git-credential-manager/blob/main/README.md
- Pushing or pulling a single file.
To find these I did, a google “how to use git”, I also read the man page, I should check this out, http://rogerdudler.github.io/git-guide/ , it looks very good but does not contain a how to use 2FA. I originally created a commands page and posted them to my Using GIT page ; it is now out of date, since github introduced 2FA.
This page documents the environment variables.
On Branches & Versions
Also posted on Using GIT
How to add a revision
git clone $URL
make the changes and test, include version control block
git status
git add {filename}
git commit -m ‘commit message’
git push # to update the master
I copied the links from the macports page.
I updated the git client on my windows machine as the one installed failed due to an ssh version issue. I installed from git scm.
I removed this comment today, it explained how I got the links in the link list. “These comments have been moved from the Planet Planet page and the comments there simplified. (They were written probably in 2011). They were written while installing Planet Venus for the first few times. I used git to install Venus, and plan to use it to update it. I found the following links useful, or ought to have,”
I also removed this, “from http://wiki.davelevy.info/macports/ in April 2018.” which implies that my original git documents were on the macports page as I wrote a script to manage ‘port’ and when I retired the Mac, I posted the code to github and mde this article it seems,
I added the link on branch & merge.
I updated the page today, retiring some content, or copying it here at least. I also inserted some links about 2FA. I note that one of the drivers for git’s adoption was its community size, and that the download interface is now much easier than sourceforge. It has a Wikipedia page, https://en.wikipedia.org/wiki/Git and I moved http://doc.norang.ca/git-howto.html & http://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup to this comment.
I added the section on gh auth
Which it seems is not available on Raspbian.
I moved the comments on 2FA/GCM to another page of its own.