مقارنة بيانات تقنية
percent
58.4%
التشابه
edit
25
تم العثور على التغييرات
add_circle
+116
تمت الإضافة
remove_circle
-204
تم الحذف
| Version1 | Version2 | Differences |
|---|---|---|
| 1 | 1 | Documentation about Gitlab. |
| 2 | 2 | Documentation about Gitlab. |
| 3 | There are two concepts: local repository which is the repository on our local computer, and remote repository which is the repository on a remote sever like gitlab, github and more. | |
| 4 | There | |
| 5 | are | |
| 6 | two concepts: local repository which is the repository on our local computer, and remote repository which is the repository on a remote sever like | |
| 7 | gitlab | |
| 8 | , | |
| 9 | github | |
| 10 | and more. | |
| 11 | Git commands: | |
| 12 | Git commands: | |
| 3 | 13 | 1-Configuration |
| 4 | 14 | 1-Configuration |
| 5 | git --version in cmd | |
| 6 | git | |
| 7 | -- | |
| 8 | version in | |
| 9 | ||
| 10 | cmd | |
| 11 | git stores files and keep track of any changes, and revert to previous version. | |
| 12 | git stores files and keep track of any changes, and revert to previous version. | |
| 13 | mkdir name | |
| 14 | mkdir | |
| 15 | ||
| 16 | name | |
| 17 | cd name | |
| 18 | cd name | |
| 19 | git status gives us the status of the file | |
| 20 | git status | |
| 15 | git –version: to know the version | |
| 16 | git –version | |
| 17 | : to know the version | |
| 18 | git status: gives us the status of the file | |
| 19 | git status | |
| 20 | : | |
| 21 | 21 | gives us the status of the file |
| 22 | not a git repository means that we haven’t created the git in the file yet | |
| 23 | no | |
| 24 | t a | |
| 25 | git repository means that we haven’t created the git in the file yet | |
| 26 | git init to create git and it’s gonna be hidden, it’s not connected to any external server it’s just a file. | |
| 22 | git init: to create git,it’s not connected to any external server it’s just a file. | |
| 27 | 23 | git |
| 28 | 24 | init |
| 29 | to create git and it’s | |
| 30 | gonna | |
| 31 | be hidden, it’s not connected to any external server it’s just a file. | |
| 32 | ls to show files | |
| 33 | ls to show files | |
| 34 | ls -a to show hidden files | |
| 35 | ls -a to show hidden files | |
| 36 | git status gives here on branch master means that this is the main branch | |
| 37 | git status gives here on branch master means that this is the main branch | |
| 38 | git config --global user.name “huda kouli” to know how made the changes. | |
| 39 | git config --global user.name “ | |
| 40 | huda | |
| 25 | : to create | |
| 26 | git,it’s | |
| 27 | not connected to any external server it’s just a file. | |
| 28 | git config --global user.name “ ” : to know how made the changes. | |
| 29 | git config --global user.name | |
| 30 | “ ” | |
| 41 | 31 | |
| 42 |
|
|
| 43 |
|
|
| 44 |
Git config --global user.email “ |
|
| 32 | : | |
| 33 | to know how made the changes. | |
| 34 | Git config --global user.email “ ”: to know who made the changes | |
| 45 | 35 | Git config --global |
| 46 | 36 | user.email |
| 47 |
“ |
|
| 48 |
|
|
| 37 | “ ”: | |
| 38 | to know who made the changes | |
| 49 | 39 | 2- commit: snapshot of repository in certain time |
| 50 | 2- commit | |
| 51 | : | |
| 40 | 2- commit: | |
| 52 | 41 | snapshot of repository in certain time |
| 53 | 42 | |
| 54 | git commit | |
| 55 | git | |
| 56 | commit | |
| 57 | ||
| 58 | vim readme.md to create text file.( write inside it then press esc to exit edit mode then at the last of file write :x to save. | |
| 59 | vim readme.md to create text | |
| 60 | file. | |
| 61 | ( | |
| 62 | write inside it then press esc to exit edit mode then at the last of file write :x to save. | |
| 63 | Untracked file means it is not ready to be added to git,not ready to commit. Pic2 | |
| 64 | Untracked file means it is not ready to be added to | |
| 65 | git,not | |
| 66 | ready to commit. | |
| 67 | ||
| 68 | Pic2 | |
| 69 | Git add readme.md to prepare changes that are about to be committed ( move the file to the staging area) and after commit it’s moved to git repository. Pic3,4,5 | |
| 70 | Git add readme.md to prepare changes that are about to be committed ( move the file to the staging area) and after commit it’s moved to git repository. | |
| 71 | Pic3,4,5 | |
| 72 | git commit -m “my first commit” -m to add the message. Pic6 | |
| 73 | git commit -m “my first | |
| 74 | commit” - | |
| 75 | m to add the message. | |
| 76 | ||
| 77 | Pic6 | |
| 78 | 3- commit multiple files: | |
| 79 | 3- commit multiple files | |
| 80 | : | |
| 81 | Pic 607: we have two files one is connected to git and the other one isn’t we do add to move both files to the staging area then we commit what we want | |
| 82 | Pic 607: | |
| 83 | we have two files one is connected to git and the other one isn’t | |
| 84 | we do add to move both files to the staging area then we commit what we want | |
| 85 | Pic 609: to unstage changes : git reset HEAD readme.md / then we do git commit. | |
| 86 | Pic 609: | |
| 87 | ||
| 43 | git add . | |
| 44 | g | |
| 45 | it add . | |
| 46 | git commit -m “my first commit” : to add the message. | |
| 47 | git commit -m “my first commit | |
| 48 | ” | |
| 49 | : | |
| 50 | to add the message. | |
| 51 | to unstage changes : git reset HEAD name/ then we do git commit. | |
| 88 | 52 | to |
| 89 | 53 | unstage |
| 90 | ||
| 91 | changes : | |
| 92 | git reset HEAD readme.md / then we do git commit. | |
| 54 | changes : | |
| 55 | git reset HEAD | |
| 56 | name | |
| 57 | / then we do git commit. | |
| 93 | 58 | 4- git log to see history of what we have done / Git log –patch to give us more information. |
| 94 | 59 | 4- git log |
| 95 | 60 | to see history of what we have done / Git log –patch to give us more information. |
| 96 | 5-commit folder: git doesn’t track folders so if the folder doesn’t contain a files git won’t recognize it. So we create file using touch command (pic 612). | |
| 97 | 5-commit folder | |
| 98 | : | |
| 99 | git doesn’t track folders so if the folder doesn’t contain a files git won’t recognize it. So we create file using touch command (pic 612) | |
| 100 | . | |
| 101 | 6- pic 613-614: deleting file: rm to remove file/ rm -rf – temp to remove folder. And we need to do add and commit. | |
| 102 | 6- | |
| 103 | ||
| 104 | pic 613-614: | |
| 105 | deleting file: rm to remove file/ rm -rf – temp to remove folder. And we need to do add and commit. | |
| 106 | 7-ignorefile 615/616:files inside folder we don’t want to make them part of the repository so we put them in ignore file using vim .gitignore and we put inside it the name of the file that we want to ignore. | |
| 107 | 7-ignorefile | |
| 108 | 615/ | |
| 109 | 616: | |
| 110 | files | |
| 111 | inside folder we don’t want to make them part of the repository so we put them in ignore file using vim . | |
| 61 | 5-deleting file: rm to remove file/ rm -rf – folder_name to remove folder. And we need to do add and commit. | |
| 62 | 5- | |
| 63 | deleting file: rm to remove file/ | |
| 64 | rm -rf – | |
| 65 | folder_name | |
| 66 | to remove folder. And we need to do add and commit. | |
| 67 | 6-ignorefile : vim .gitignore (files inside folder we don’t want to make them part of the repository so we put them in ignore file using ) | |
| 68 | 6 | |
| 69 | - | |
| 70 | ignorefile | |
| 71 | : | |
| 72 | vim . | |
| 112 | 73 | gitignore |
| 113 | and we put inside it the name of the file that we want to ignore. | |
| 114 | 617: we notice that config doesn’t appear anymore in the files. | |
| 115 | 617: | |
| 116 | ||
| 117 | we notice that config doesn’t appear anymore in the files. | |
| 118 | 8-creating a branch: to keep track of changes and to not affect the main branch. | |
| 119 | 8-creating a branch: | |
| 120 | ||
| 74 | ( | |
| 75 | files inside folder we don’t want to make them part of the repository so we put them in ignore file using | |
| 76 | ) | |
| 77 | 7-creating a branch: to keep track of changes and to not affect the main branch. | |
| 78 | 7 | |
| 79 | -creating a branch: | |
| 121 | 80 | to keep track of changes and to not affect the main branch. |
| 122 | Pic 618: Git checkout -b name_of_branch to create the branch, without -b to open a branch | |
| 123 | Pic 618: | |
| 124 | Git checkout -b | |
| 81 | git checkout -b name_of_branch to create the branch, without -b to open a branch | |
| 82 | git checkout -b | |
| 125 | 83 | name_of_branch |
| 126 | 84 | to create the branch, without -b to open a branch |
| 127 | in this pic we did changes on a file in a branch and it’s not affected the main branch. | |
| 128 | in this pic we did changes on a file in a branch and it’s not affected the main branch | |
| 129 | . | |
| 130 | 9- pic 619:deleting branch: git branch -d name_of_branch (it will git us error if we haven’t merge it yet) if we want to delete it though we use -D. | |
| 131 | 9- | |
| 132 | pic | |
| 133 | 619: | |
| 134 | deleting | |
| 135 | branch: | |
| 136 | git branch -d | |
| 137 | name | |
| 138 | _of_branch | |
| 85 | 8-:deleting branch: git branch -d name_of_branch (it will git us error if we haven’t merge it yet) if we want to delete it though we use -D. | |
| 86 | 8- | |
| 87 | :deleting branch: | |
| 88 | ||
| 89 | git branch -d | |
| 90 | name_of_branch | |
| 139 | 91 | (it will git us error if we haven’t merge it yet) if we want to delete it though we use -D. |
| 140 |
|
|
| 141 |
|
|
| 142 |
|
|
| 143 |
|
|
| 92 | 9-:merge branch: git merge name_of branch | |
| 93 | 9- | |
| 94 | :merge branch: | |
| 95 | git merge | |
| 144 | 96 | name_of |
| 145 | 97 | branch |
| 146 | 98 | Fast forward merge: it’s only possible when we haven’t made changes to the master and we merge a branch, otherwise if we made changes to master after creating a branch from it this time of merging won’t work. |
| 147 | 99 | Fast forward merge |
| 148 | 100 | : it’s only possible when we haven’t made changes to the master and we merge a branch, otherwise if we made changes to master after creating a branch from it this time of merging won’t work. |
| 149 | Pic624-625:show us the branches. | |
| 150 | Pic624- | |
| 151 | 625 | |
| 152 | :show | |
| 153 | us the branches. | |
| 154 | Pic 626: because we merged the branch so we can delete it. | |
| 155 | Pic 626 | |
| 156 | : because we merged the branch so we can delete it. | |
| 157 | Advanced merging: pic 626/627: recursive merge it happens when we merge a branch to a master branch after editing master branch. | |
| 158 | Advanced merging: | |
| 159 | pic 626/ | |
| 160 | 627: | |
| 161 | recursive | |
| 162 | merge it happens when we merge a branch to a master branch after editing master branch. | |
| 163 | Rebasing commits: pic 632: make changes html file in first branch, then make changes to file in master branch so we can’t do fast forward merging. | |
| 164 | Rebasing commits: | |
| 165 | pic 6 | |
| 166 | 32 | |
| 101 | Advanced merging: recursive merge it happens when we merge a branch to a master branch after editing master branch. | |
| 102 | Advanced merging | |
| 167 | 103 | : |
| 168 | make changes html file in first branch, then make changes to file in master branch so we can’t do fast forward merging. | |
| 104 | recursive merge it happens when we merge a branch to a master branch after editing master branch. | |
| 105 | Rebasing commits: git rebase master (If we want to do fast forward merge to keep our history as clean as possible and the changes are not conflicted with each other we will do the rebase which is taking the changes from master adds them to the branch we are in it, then add the commit to this branch.) | |
| 106 | Rebasing commits: | |
| 107 | git rebase master | |
| 108 | ( | |
| 169 | 109 | If we want to do fast forward merge to keep our history as clean as possible and the changes are not conflicted with each other we will do the rebase which is taking the changes from master adds them to the branch we are in it, then add the commit to this branch. |
| 170 | If we want to do fast forward merge to keep our history as clean as possible and the changes are not conflicted with each other we will do the rebase which is taking the changes from master adds them to the branch we are in it, then add the commit to this branch | |
| 171 | . | |
| 172 | Pic 634/635: we see that we rebased the master to the branch then in pic 636 we merged the changes in the branch to the master. | |
| 173 | Pic 634/635: | |
| 174 | we see that we rebased the master to the branch then in | |
| 175 | pic 636 | |
| 176 | we merged the changes in the branch to the master. | |
| 110 | ) | |
| 177 | 111 | Resolving merge conflicts: conflicts happens when we want to merge two different commits to the same file and the same line. |
| 178 | 112 | Resolving merge conflicts: |
| 179 | 113 | conflicts happens when we want to merge two different commits to the same file and the same line. |
| 180 | Pic 638-639: we did changes to line/ pic 640/642: we did changes to the same line. | |
| 181 | Pic 638-639: | |
| 182 | we did changes to line/ | |
| 183 | pic 640/64 | |
| 184 | 2 | |
| 185 | : | |
| 186 | we did changes to the same line. | |
| 187 | Pic 443: merge conflict to see details about it we use git status. | |
| 188 | Pic 443 | |
| 189 | : merge conflict to see details about it we use git status. | |
| 190 | Git merge -- abort to check out to the original branch. | |
| 191 | Git merge | |
| 192 | -- | |
| 193 | abort to check out to the original branch | |
| 194 | . | |
| 195 | Pic 644: git merge -- abort restore master to original content / same thing for git rebase –abort when doing rebase | |
| 196 | Pic 644: | |
| 114 | git merge – abort( restore master to original content) / same thing for git rebase –abort when doing rebase | |
| 197 | 115 | |
| 198 | 116 | git merge |
| 199 | -- | |
| 200 | abort restore master to original content | |
| 117 | – | |
| 118 | abort | |
| 119 | ( | |
| 120 | restore master to original content | |
| 121 | ) | |
| 201 | 122 | / |
| 202 | same thing for git rebase –abort when doing rebase | |
| 203 | Pic 648: it gives the lines that we conflict in, head means the main branch and it gives the lines in the other branch that we have conflicts in it. | |
| 204 | Pic 648: | |
| 205 | it gives the lines that we | |
| 206 | conflict | |
| 207 | in, head means the main branch and it gives the lines in the other branch that we have conflicts in it. | |
| 123 | same thing for | |
| 124 | git rebase –abort | |
| 125 | when doing rebase | |
| 208 | 126 | To pull changes: git pull origin master. |
| 209 | 127 | To pull changes: |
| 210 | g | |
| 211 | it pull origin master | |
| 212 | . | |
| 128 | ||
| 129 | git pull origin master. | |
| 213 | 130 | To push changes: git push origin master. |
| 214 | 131 | To push changes |
| 215 | 132 | : git push origin master. |
| 216 | Pic 654: Handling conflicts: 1) git reset --hard origin/master (we take the changes from the remote repo and deleted the changes from the local repository. | |
| 217 | Pic 654: | |
| 218 | Handling | |
| 219 | conflicts | |
| 220 | : 1) | |
| 221 | git reset --hard origin/master (we take the changes from the remote repo and deleted the changes from the local repository. | |
| 222 | 2)pic 655/656: git pull –rebase. | |
| 223 | 2) | |
| 224 | pic 655/656 | |
| 225 | : git pull –rebase | |
| 226 | . | |
| 227 | 658-659: it rebased the changes in the local repository then in the remote repository, so the push got accepted. | |
| 228 | 658-659: it rebased the changes in the local repository then in the remote repository, so the push got accepted. | |
| 229 | Clone a remote repository: when we did a remote repository and want it locally. | |
| 230 | Clone a remote repository: when we did a remote repository and want it locally. | |
| 231 | Pic 659:Git clone ssh address. | |
| 232 | Pic | |
| 233 | 659 | |
| 234 | :Git | |
| 235 | clone | |
| 133 | Handling conflicts: 1) git reset --hard origin/master (we take the changes from the remote repo and deleted the changes from the local repository. | |
| 134 | ||
| 135 | Handling conflicts: | |
| 136 | 1) | |
| 137 | git reset --hard origin/master | |
| 138 | (we take the changes from the remote repo and deleted the changes from the local repository. | |
| 139 | 2) git pull –rebase. | |
| 140 | 2) | |
| 141 | git pull –rebase. | |
| 142 | Clone a remote repository: git clone ssh_address (when we did a remote repository and want it locally.) | |
| 143 | Clone a remote repository | |
| 144 | : | |
| 145 | git clone | |
| 236 | 146 | ssh |
| 237 | address. | |
| 147 | _ | |
| 148 | address | |
| 149 | ( | |
| 150 | when we did a remote repository and want it locally. | |
| 151 | ) | |
| 238 | 152 | Merge request: to let others see changes before merging it to main branch. |
| 239 | 153 | Merge request: to let others see changes before merging it to main branch. |
| 240 | Pic 661/662: creating merge request after push | |
| 241 | Pic 661/662: creating merge request after push | |
| 154 | after push a merge request is generated in gitlab. | |
| 155 | after push | |
| 156 | a merge request is generated in | |
| 157 | gitlab | |
| 158 | . | |
| 159 | Every change we push it. | |
| 242 | 160 | Every change we push it |
| 243 | Every change we push it | |
| 244 | Pic 664:Squash commits adds all the commits into one | |
| 245 | Pic | |
| 246 | 664:Squash | |
| 247 | commits adds all the commits into one | |
| 248 | Pic 665: fast forward commit Is better to clean history. | |
| 249 | Pic 665: fast forward commit Is better to clean history. | |
| 161 | . | |
| 250 | 162 | |
| 251 | 163 | https://www.youtube.com/watch?v=4lxvVj7wlZw |
توضح هذه المقارنة الفرق بين نسختين من بيانات تقنية. تحتوي المستندات على تشابه بنسبة 58.4% مع 25 التغييرات التي تم اكتشافها.
لا يتم تخزين بياناتك على الخوادم. تتم جميع المقارنات في جلسة مشفرة ويتم حذفها مباشرة بعد إغلاق علامة التبويب.