Tweets
Nice work on this! I'm working on the tweethack repo as a project. Time for a demo.
Merge Conflicts
- Make a repo in a new foler
mkdir conflicts
cd conflicts
git init
- Make and checkout a new branch
git branch new
git checkout new
- Edit a file & commit the change
nano file.txt
# Edit the file (add your name perhaps) then press Ctrl-X and y to save
git add .
git commit -m "Made a change"
- Checkout original branch
git checkout master
- Edit and commit change to file.
nano file.txt
# Edit the file (add a **different** name) then press Ctrl-X and y to save
git add .
git commit -m "Made a second change"
- Try to Merge them
git merge new # this means merge in the `new` branch
- Resolve conflicts
Basically, just make the file the way it should be, remove the <<<<<<<<<<<<<<<
, ===============
, and >>>>>>>>>>>>>>>>>>>>>>
lines and you should be good to go!
- Commit & push resolution
git add .
git commit -m "Fixed conflict"
Branching
Always branch from the main branch! (gh-pages
for our site; master
for most repos)
Proposals
The proposal assignment is up, Due Sunday. We'll spend the balance of time in class workshopping a group's project and then working on the assignment.