IBM create Bluemix Cloud for client and server Swift app developers
Monthly Archives: June 2016
git unmerge (local)
lets say you locally merged another branch into yourbranch but changed your mind BEFORE you pushed it
to unmerge you will need to switch to another branch, delete yourbranch then checkout yourbranch
git checkout anotherbranch git branch -D yourbranch git checkout yourbranch git pull
mongo mongoshell query examples
mongo mongoshell query examples
db.MYTABLE.find()
db.MYTABLE.find({}).count
db.MYTABLE.find({}).limit(10)
db.MYTABLE.find({"name":"a"})
db.MYTABLE.find({"name":"a"},{name:1})
db.MYTABLE.find({"name":"a"}).sort({name:1})
db.MYTABLE.remove({"name":"a"})
clean local git repo with git remote prune origin
You can cleanup / purge / prune local git branch copies that dont exist on the remote git repo by using
$ git remote prune origin