Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tech_notes:git [2023-02-14 Tue wk07 18:02] baumkptech_notes:git [2023-04-30 Sun wk17 17:43] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +{{tag>linux git github}}
 ======git====== ======git======
  
Line 5: Line 6:
 In directory to be made into git: ''git init'' In directory to be made into git: ''git init''
  
 +To save files to staging file: '' git add .'' or individual files
  
 +To commit files: ''%%git commit -m 'change description of save progress'%%''
  
-<- tech_notes:ansible|back ^ tech_notes:index|Start page ^ tech_notes:docker|next->+To see log of all commits: ''git log'' 
 + 
 +To revert to an earlier branch: ''git checkout "save code"'' Note this will create a new branch, from the earlier time line. 
 + 
 +''git checkout -b new-branch'' will create and switch to a new branch 
 + 
 + 
 + 
 +=====github===== 
 +Create a github account 
 + 
 +Create a new repository   
 +Note that github give instructions on how to push from you local git to git hub. 
 + 
 +''%%git remote add origin https://github.com/yourhandle/name.git%%'' 
 + 
 + 
 +<- tech_notes:ansible|back ^ tech_notes:index|Start page ^ tech_notes:ssh|next->
  • /app/www/public/data/attic/tech_notes/git.1676368977.txt.gz
  • Last modified: 2023-04-30 Sun wk17 17:44
  • (external edit)