article

git add and git commit

[WHAT]

  1. ] by Don Sagrott, founder @sospep.com -  the very basic operations at the heart of git 

[WHY]

  1. ] git add - adds any new or updated files that are physically present in the repo, to the 'git repo'
  2. ] git commit - tells git that your serious about the changes, prompts you to add a 'commit message'

[WHERE]

  1. ] READ THE FULL ARTICLE
    1. ] see EXAMPLE section below 

[WHEN]

  1. ] 2017-05-01

[EXAMPLE]

  1. ] git add
    1. ] after editing any file in the repo, you need to ADD it back to the repo
    2. ] after creating/adding any new file to the repo, you need to ADD the file to the repo with git
    3. ] EXAMPLE 
    4. ] git add *.* 
    5. ] git add --all || git add -a 
  2. ] git commit
    1. ] after adding a new or edited file to your repo, you need to commit it to the repo
    2. ] after executing the commit command, you will be prompted to enter a commit message
    3. ] the commit message is a 'comment' that documents the change(s) made to your source code 
    4. ] EXAMPLE
    5. ] git commit -a

[HOW-TO]

  1. [00:00] NEW task 
    1. ] # # 

[REFERENCE]

  1. x] # 7283 - CREATE-article# 5730 - 

[RELATED]

  1. ] BOOK git-started - contents 

 

Details Photos Edit more

Details

ID: 5730

NAME: 002-git-add-and-git-commit

DESCRIPTION: ] gits basic commands to add new (or updated) files to your repo and then commit those changes

AUTHOR: article.author/s

EDITOR: article.editor/s

PUBLISHER: article.publisher/s

STATUS: Write

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

page_photo

actions

Email Email-Owner SMS and