25 Basic interaction with GitHub
25 Basic interaction with GitHub
Command
1
$ git clone https://github.com/artwalker/health-checks.git
Code output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Cloning into 'health-checks'...
Username for 'https://github.com': redquinoa
Password for 'https://redquinoa@github.com':
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
Command
1
2
$ cd health-checks/
$ ls -l
Code output
1
2
3
total 4
-rw-rw-r-- 1 user user 62 Jan 6 14:06 README.md
Command
1
$ vim README.md
Modify file content
1
2
3
4
# health-checks
Scripts that check the health of my computers
This repo will be populated with lots of fancy checks.
Command
1
$ git commit -a -m "Add one more line to README.md"
Code output
1
2
3
[master 807cb50] Add one more line to README.md
1 file changed, 2 insertions(+)
Command
1
$ git push
Code output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Username for 'https://github.com': redquinoa
Password for 'https://redquinoa@github.com':
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 347 bytes | 347.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/redquinoa/health-checks.git
3d9f86c..807cb50 master -> master
Command
1
2
$ git config --global credential.helper cache
$ git pull
Code output
1
2
3
4
5
Username for 'https://github.com': artwalker
Password for 'https://redquinoa@github.com':
Already up to date.
Command
1
git pull
Code output
1
Already up to date.
This post is licensed under CC BY 4.0 by the author.