Make Local Changes and Update remote Repositories

From wikieduonline
Revision as of 11:51, 12 November 2020 by Welcome (talk | contribs) (Created page with "Add local changes. # Stage files. #* Add files to the folder or modify existing files. #* Add new and modified files to the git staging area using the command:<br><code>git...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Add local changes.

  1. Stage 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.
    • Push changes from your local repository to a remote repository using the command:
      git push[3] or git push origin master or git push -h origin master


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: