Site Tools


linux:general:git

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
linux:general:git [2017/12/19 16:49] – created lunetikklinux:general:git [2017/12/19 17:02] lunetikk
Line 4: Line 4:
 ^  Command  ^  Function  ^ ^  Command  ^  Function  ^
 |  git log --follow check_symlink  |  shows the change history of the file "check_symlink"  | |  git log --follow check_symlink  |  shows the change history of the file "check_symlink"  |
-|  git remote -v  |  verify +|  git remote -v  |  verify the remote url (origin) of the current repository  | 
-      + git config --global user.email "<MAIL>"   configure your mail address  
-      + git config --global user.name "<USERNAME>"   configure your user name  
-      |+ <nowiki>git remote add origin https://github.com/<USERNAME>/<REPOSITORY>.git</nowiki>   set a new origin for your current local repository  |
  
  
Line 27: Line 27:
 #rename the temp branch to master #rename the temp branch to master
 git branch -m master git branch -m master
 +#copy master to remote origin 
 +git push -f origin master 
 +->Username for 'https://github.com': <USERNAME> 
 +->Password for 'https://<USERNAME>@github.com': <PASSWORD>
 </code> </code>
linux/general/git.txt · Last modified: 2017/12/19 17:12 (external edit)