ready to commit. Make sure you save! go to file > Source Control > Commit... You will see a window with your new changes on the left and the code you changed on the right. Before you commit, you must add a message. Make sure your message is descriptive e.g. ' changed viewDidLoad method in SignedIn.m' now hit the blue commit button and you're ready to push to github.
local . git file, you need to push your changes to github so that the rest of us can pull. file > Source Control > Push... make sure you choose origin/master like below Choose push and the green light should change to 'Push Successfull' You can now see your changes on github
but another developer changes the same line and commits it to Github before you committed your change!! When you go to push, you'll get the following warning: It's telling to pull first, but when you do a pull procedure, you get the following error window...
shows your changes and the right pane shows the remote changes. The changes are on the same line and are different - so they are in conflict. In the conflicts window, at the bottom-center, you'll see 4 buttons. • the left most button allows you to keep your changes on top of the remote changes. • the next button allows you to keep just your changes. • the third allows you to keep only remote changes. • the last allows you to keep the remote changes on top of your changes.
to keep and then hit 'Pull' at the right to pull just like normal. You can now commit and push resolved conflict to github like you normally would. Thank you!