Sharing and Updating Projects

git-fetch

Download objects and refs from another repository

git fetch [<options>] [<repository> [<refspec>…​]]
git fetch [<options>] <group>
git fetch --multiple [<options>] [(<repository> | <group>)…​]
git fetch --all [<options>]

git-pull

Fetch from and integrate with another repository or a local branch

git pull [<options>] [<repository> [<refspec>…​]]

git-push

Update remote refs along with associated objects

git push [--all | --branches | --mirror | --tags] [--follow-tags] [--atomic] [-n | --dry-run] [--receive-pack=<git-receive-pack>]
	   [--repo=<repository>] [-f | --force] [-d | --delete] [--prune] [-q | --quiet] [-v | --verbose]
	   [-u | --set-upstream] [-o <string> | --push-option=<string>]
	   [--[no-]signed|--signed=(true|false|if-asked)]
	   [--force-with-lease[=<refname>[:<expect>]] [--force-if-includes]]
	   [--no-verify] [<repository> [<refspec>…​]]
Snippets
  • this will push all the code to the remote repository i.e. Github (Code Hosting Provider) to track changes in the project.

  • when we want to publish our local branch on a remote repository,

  • to delete a remote branch,

git-remote

Manage set of tracked repositories

Snippets
  • displays information about remote repositories associated with the local repository

  • this command will link the remote repository to the local repository.

git-submodule

Initialize, update or inspect submodules

Last updated

Was this helpful?