Wednesday, July 9, 2014
Thursday, July 3, 2014
Git revert changes
git reset <filename> to unstage the file
Once unstaged,
git checkout -- <filename> to get rid of the changes and go back to normal
Once unstaged,
git checkout -- <filename> to get rid of the changes and go back to normal
Database heroku changes
Heroku add-on pgbackups provides ability to import export database.
link here: https://devcenter.heroku.com/articles/heroku-postgresql
https://devcenter.heroku.com/articles/heroku-postgres-import-export
Access to heroku postgres DB prompt
heroku pg:psql
Djano South plugin which enables migrations
http://www.mikeball.us/blog/using-south-on-heroku/
link here: https://devcenter.heroku.com/articles/heroku-postgresql
https://devcenter.heroku.com/articles/heroku-postgres-import-export
heroku pgbackups:capture $ curl -o latest.dump `heroku pgbackups:url`
$ heroku pgbackups:restore DATABASE 'https://s3.amazonaws.com/me/items/3H0q/mydb.dump'
Access to heroku postgres DB prompt
heroku pg:psql
Djano South plugin which enables migrations
http://www.mikeball.us/blog/using-south-on-heroku/
Wednesday, July 2, 2014
Git
Start with this..
git init - to initialize an empty repository
git init - to initialize an empty repository
git add -A - add all files changed as well as newly created files
git commit -m "description here"
git push origin master
more here
https://www.atlassian.com/git/tutorial/git-basics
Setting up SSH keys
https://help.github.com/articles/generating-ssh-keys
more here
https://www.atlassian.com/git/tutorial/git-basics
Setting up SSH keys
https://help.github.com/articles/generating-ssh-keys
Subscribe to:
Posts (Atom)