git clone https://github.com/anandchakru/picaslide.git
git add .
or
git add -A
git reset HEAD .
git commit -m 'commit comments'
git push -u origin master
Reference: -u
Reference: origin
git pull
While Pull if you see conflict, Resolve all the conflicts and do a
git commit -m 'conflicts resolved'
to have local repo conflict free
git status
git diff
git branch
git branch guestslists
git branch -d guestlists
git branch -D guestlists
git branch -m newguestlists
-
Switch to guestlists
git checkout guestlists
-
Update master branch,
git fetch origin master
-
Merge master into guestlists (to ensure no conflits)
git merge master
-
Merge guestlists into master
git checkout master git merge guestlists
-
Push both to [remote repo]
git push -u origin guestlists:master
-
Stash your changes and clean the current branch
git stash save "Comments about changes it has"
-
List the stashes
git stash list # stash@{0}: On guestlists: Comments about changes it has
-
Move back stashed changes into current branch
git stash apply stash@{0}
or
git stash pop
- Delete a stash
git stash drop stash@{0}