-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub_command_tutorial.txt
More file actions
92 lines (83 loc) · 3.89 KB
/
Copy pathgithub_command_tutorial.txt
File metadata and controls
92 lines (83 loc) · 3.89 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
batuhan@batuhan:~$ cd Desktop/
batuhan@batuhan:~/Desktop$ cd github-tutorial/
batuhan@batuhan:~/Desktop/github-tutorial$ git clone https://github.com/yigitabi5444/mfr-powertrain.git
Cloning into 'mfr-powertrain'...
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 13 (delta 3), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (13/13), done.
batuhan@batuhan:~/Desktop/github-tutorial$ cd mfr-powertrain/
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git status
On branch main
Your branch is up to date with 'origin/main'.
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git checkout -b new
Switched to a new branch 'new'
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git branch
main
* new
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git status
On branch new
nothing to commit, working tree clean
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git checkout main
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git checkout new
Switched to branch 'new'
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ ls
LICENSE README.md
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ touch new.py
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ vim new.py
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ ls
LICENSE new.py README.md
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git status
On branch new
Untracked files:
(use "git add <file>..." to include in what will be committed)
new.py
nothing added to commit but untracked files present (use "git add" to track)
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git add new.py
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git status
On branch new
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: new.py
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git commit -m "Added tutorial file." new.py[new 6af4f40] Added tutorial file.
1 file changed, 1 insertion(+)
create mode 100644 new.py
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git status
On branch new
nothing to commit, working tree clean
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git push
fatal: The current branch new has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin new
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git push --set-upstream origin new
Username for 'https://github.com': Batuhan09
Password for 'https://Batuhan09@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/yigitabi5444/mfr-powertrain.git/'
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git push --set-upstream origin new
Username for 'https://github.com': Batuhan09
Password for 'https://Batuhan09@github.com':
Counting objects: 16, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (16/16), 14.75 KiB | 2.46 MiB/s, done.
Total 16 (delta 4), reused 0 (delta 0)
remote: Resolving deltas: 100% (4/4), done.
remote:
remote: Create a pull request for 'new' on GitHub by visiting:
remote: https://github.com/yigitabi5444/mfr-powertrain/pull/new/new
remote:
To https://github.com/yigitabi5444/mfr-powertrain.git
* [new branch] new -> new
Branch 'new' set up to track remote branch 'new' from 'origin'.
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git status
On branch new
Your branch is up to date with 'origin/new'.
nothing to commit, working tree clean
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$ git checkout main
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
batuhan@batuhan:~/Desktop/github-tutorial/mfr-powertrain$