Difference between revisions of "Git remote"
Jump to navigation
Jump to search
(3 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
https://git-scm.com/docs/git-remote | https://git-scm.com/docs/git-remote | ||
− | <code>[[git remote add]] [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=(fetch|push)] <name> <url></code> | + | * <code>[[git remote add]] [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=(fetch|push)] <name> <url></code> |
+ | * <code>[[git remote add origin]] git@gitserver:/srv/git/project.git</code> | ||
+ | * <code>[[git remote show origin]]</code> | ||
+ | * <code>[[git remote -v]]</code> | ||
− | + | [[git remote rm origin]] | |
− | |||
− | |||
== Examples == | == Examples == |
Latest revision as of 06:14, 1 September 2022
https://git-scm.com/docs/git-remote
git remote add [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=(fetch|push)] <name> <url>
git remote add origin git@gitserver:/srv/git/project.git
git remote show origin
git remote -v
git remote rm origin
Examples[edit]
git remote (no output)
git remote origin
git remote -v origin [email protected]:your-project/your-repo.git (fetch) origin [email protected]:your-project/your-repo.git (push)
git remote show origin
Related commands[edit]
See also[edit]
git remote
,git remote add
,git remote -v
,git remote show origin
git
: [config | init | status ]
,git add
,git rm
,git commit
,git push, git pull
,.gitconfig
,.gitignore
,git
(clone
,fetch
,pull
),git tag
,git log
,git blame
, Merge Request, LFS,git branch
,git apply
,git rebase
,git diff
,git diff-tree
,git config --global
,remote | submodule | request-pull
,GIT_TRACE, GIT_CURL_VERBOSE
,clean
,main
,git show-ref
,git reset
,git prune
,git ls-remote origin
,git checkout
,git switch
,pathspec
,git credential-osxkeychain
,git version
,pre-commit
,git --help
, GitBook,refs/
Advertising: