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

gh auth login

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

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

  1. https://itnext.io/the-github-development-workflow-fb48d9bb63f9
  2. https://gist.github.com/nzakas/7633640
  3. https://nvie.com/posts/a-successful-git-branching-model/
  4. https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell

9 Replies

  1. 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

  2. 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,

  3. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.