-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathgit push example.txt
More file actions
27 lines (26 loc) · 987 Bytes
/
Copy pathgit push example.txt
File metadata and controls
27 lines (26 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
root@master:~# gh repo clone amitopenwriteup/projectnode
Cloning into 'projectnode'...
remote: Enumerating objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 3
Receiving objects: 100% (3/3), done.
root@master:~# ls
libgit2 myrepo projectnode snap test testbranch tmp
root@master:~# cd projectnode/
root@master:~/projectnode# ls
README.md
root@master:~/projectnode# git remote
origin
root@master:~/projectnode# git remote add test https://github.com/amitopenwriteup/projectnode
root@master:~/projectnode# git remote
origin
test
root@master:~/projectnode# vim test.sh
root@master:~/projectnode# git add test.sh
root@master:~/projectnode# git commit -m "adding file"
[master d469155] adding file
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 test.sh
root@master:~/projectnode# git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)