-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnotes.txt
executable file
·80 lines (45 loc) · 1.86 KB
/
notes.txt
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
( chere -i -t mintty -f )
git clone https://github.com/trogne/hello-world.git
(dir hello-world)
git clonse https://github.com/trogne/hello-world.git this_dir
git config --global user.name "Patrick Fiset"
git config user.name
git config --global user.email "patrick.fiset@gmail.com"
git config user.email
git status
git add notes.txt
touch index.html
git add *
git reset HEAD notes.txt
git commit -m "Created index file"
git add *
git commit -m "added hello world to index"
git commit -a -m "notes modified"
git log
git log --pretty=oneline -2
git push
git push origin master
git checkout
git pull
git branch hello-england
git checkout hello-england
git checkout -b new-branch (pour créer + checkout en même temps)
git push origin hello-england
git branch
git merge hello-england
git branch -d hello-england
git push origin --delete hello-england
git remote -v
pull = fetch + merge
git remote add upstream git@github.com:trogne/hello-world.git
git fetch upstream
git merge upstream/master master
git push origin master
? git rebase upstream/master
In Git, there are two main ways to integrate changes from one branch into another: the merge and the rebase.
? git reset --hard origin/master
git reset's function is to take the current branch and reset it to point somewhere else, and possibly bring the index and work tree along
trogne2 : pour que 'git push origin master' fonctionne, dans trogne2 j'ai dû ajouter trogne comme collaborateur
SSH / Error: Permission to user/repo denied to other-user
This error means the key you are pushing with is attached to an account which does not have access to the repository.
To fix this, the owner of the repository (user) needs to add your account (other-user) as a collaborator on the repository or to a team that has write access to the repository.