27 Working With Remotes
27 Working With Remotes
Command
1
2
$ cd health-checks/
$ git remote -v
Code output
1
2
3
origin https://github.com/artwalker/health-checks.git (fetch)
origin https://github.com/artwalker/health-checks.git (push)
Command
1
$ git remote show origin
Code output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Username for 'https://github.com': artwalker
Password for 'https://artwalker@github.com':
* remote origin
Fetch URL: https://github.com/artwalker/health-checks.git
Push URL: https://github.com/artwalker/health-checks.git
HEAD branch: master
Remote branch:
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)
Command
1
$ git branch -r
Code output
1
2
3
origin/HEAD -> origin/master
origin/master
Command
1
$ git status
Code output
1
2
3
4
5
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
This post is licensed under CC BY 4.0 by the author.