User Tools

Site Tools


raspberrypi:gitinfo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
raspberrypi:gitinfo [2018/02/14 02:42]
dwheele created
raspberrypi:gitinfo [2021/04/03 17:58] (current)
dwheele [Command Line Client]
Line 1: Line 1:
 ====== Git Notes ====== ====== Git Notes ======
 +
 +I was using Git to backup "panelDrive." This is located at c:\users\dan\git. Issuing "git remote -v" will show that these are connected to <nowiki>remote repository "ssh://git@stopstogo.com/home/git/repo.git".</nowiki>
 +
 +3/5/2019
  
 ==== YouTube Videos ==== ==== YouTube Videos ====
Line 7: Line 11:
 ===== Command Line Client ===== ===== Command Line Client =====
  
-  * ''git config --global user.email "youremail@somewhere.com"''+  * ''git config <nowiki>--global</nowiki> user.email "youremail@somewhere.com"''
     * Sets up email to be used each time pushing/committing     * Sets up email to be used each time pushing/committing
-  * ''git config --global user.name "yourusername"''+  * ''git config <nowiki>--global</nowiki> user.name "yourusername"''
     * Sets up the user name to be used each time pushing/committing, so it won't be prompted every time.     * Sets up the user name to be used each time pushing/committing, so it won't be prompted every time.
   * ''git init''   * ''git init''
Line 21: Line 25:
   * ''git remote add origin <nowiki>ssh://git@stopstogo.com/home/git/repo.git</nowiki>''   * ''git remote add origin <nowiki>ssh://git@stopstogo.com/home/git/repo.git</nowiki>''
     * Adds a remote Git repository to current local Git repository     * Adds a remote Git repository to current local Git repository
 +  * ''git remote -v''
 +    * Shows remotes for current repository
   * ''git push -u origin master''   * ''git push -u origin master''
     * Pushes files from "master" branch of local Git repository to remote repository     * Pushes files from "master" branch of local Git repository to remote repository
   * ''git log''   * ''git log''
   * ''git --help''   * ''git --help''
 +  * ''git config --bool core.bare true'' Make a bare remote repository so source can be re-pushed to it.
  
 ===== How to create new branch ===== ===== How to create new branch =====
raspberrypi/gitinfo.1518576163.txt.gz · Last modified: 2018/02/14 02:42 by dwheele