Open Source Comes to Campus/Curriculum/Directory: Difference between revisions
Content added Content deleted
imported>Shauna No edit summary |
imported>Shauna No edit summary |
||
Line 161: | Line 161: | ||
That's it! You can add as many remotes as you'd like, although for the most part people stick to one or two. |
That's it! You can add as many remotes as you'd like, although for the most part people stick to one or two. |
||
== Pulling from the original repository == |
|||
You want to get the most up to date version of directory.html from the original repository. To get an updated version of the main repository, you can type: |
You want to get the most up to date version of directory.html from the original repository. To get an updated version of the main repository, you can type: |
||
Line 174: | Line 174: | ||
There are two ways to do this. We'll go over both. |
There are two ways to do this. We'll go over both. |
||
== Option A: Discard/keep within files == |
|||
There are a number of tools you can use to help visualize merge conflicts. For simple conflicts, though, I like to use a basic editor, such as nano, vim, emacs, or whatever you're most comfortable with. In basic text view, a merge conflict looks like this: |
There are a number of tools you can use to help visualize merge conflicts. For simple conflicts, though, I like to use a basic editor, such as nano, vim, emacs, or whatever you're most comfortable with. In basic text view, a merge conflict looks like this: |
||
Line 184: | Line 184: | ||
You will then need to [[Open_Source_Comes_to_Campus/Curriculum/Directory#Commit_and_push | add and commit]] your changes. |
You will then need to [[Open_Source_Comes_to_Campus/Curriculum/Directory#Commit_and_push | add and commit]] your changes. |
||
== Option B: Discard/keep whole files == |
|||
Dealing with merge conflicts can get messy, especially when there are a lot of changes and you want to keep things from both versions of the file. |
Dealing with merge conflicts can get messy, especially when there are a lot of changes and you want to keep things from both versions of the file. |