Difference between revisions of "Make Local Changes and Update remote Repositories"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
  
<code>[[git add]]</code> -> <code>[[git commit]]</code> -> <code>[[git push]]</code>
+
Steps: <code>[[git add]]</code> -> <code>[[git commit]]</code> -> <code>[[git push]]</code>
  
 +
== Example ==
 
Add local changes.
 
Add local changes.
 
# Stage/add files:
 
# Stage/add files:

Revision as of 05:38, 17 November 2020

Steps: git add -> git commit -> git push

Example

Add local changes.

  1. Stage/add files:
    • Add files to the folder or modify existing files.
    • Add new and modified files to the git staging area using the command:
      git add .[1] or git add some_modified_file.txt or git add -A
  2. Commit changes"
    • Commit changes into the local repository using the command:
      git commit -m "<some message>"
  3. Connect to a remote repository.
    • Connect to a remote repository using the command:
      git remote add <name> <url>[2]
  4. Push changes to a remote repository.

See also

  • http://man7.org/linux/man-pages/man1/git-add.1.html
  • http://man7.org/linux/man-pages/man1/git-remote.1.html
  • https://git-scm.com/docs/git-push
  • Advertising: