A Django site.
April 22, 2009

Learning and Corporate Development - Entries
Learning and Corporate Development - Entries
Learning and Corporate Development - Home is about »
» Git - Frequently Used Commands

git remote add origin git@github.com:{your git username}/{your project}.git
Adds a remote origin for you to push and pull to and from your remote repository using the 'origin' command - see examples below

git pull origin
Pulls in all your remote branches locally

git checkout -b {new branch name}
Creates a new branch and immediately switches to working on that branch

git branch
Lists your local branches, showing which branch you are on with a *

git status
Shows you which files have been created/removed/modified and whether they are tracked or committed

git add .
Adds all modified/created files into Git's tracking ready for you to commit

git rm {filename}
Places the removed file into Git's tracking so that committing removes the file from your branch

git add -u
Does the same as 'git rm' but does it for all removed files without the need to provide each filename

git commit -m "{commit message}"
Commits all the changes git was tracking with the provided commit message

git push origin {branch name}
Pushes all your local branch changes to your remote repository

git checkout {branch name}
Moves you to working with the provided branch - Must have committed all the changes to your current branch, or abandoned your changes (see 'reset --hard' below)

git merge {branch name}
Merges the changes from the provided branch into the branch you are currently working on

git branch -d {branch name}
Deletes the provided branch (All changes need to be fully merged in HEAD)

git branch -D {branch name}
Deletes the provided branch even if he changes have not been merged

git reset --hard
Discards any changes you have made to the branch you are currently working on

git push origin :heads/{branch name}
Deletes the branch provided from your remote repository


A full git cheat sheet!

October 1, 2008
» Accessing abortion care

I heard a fascinating programme on Radio 4 (Case notes with Dr Mark Porter). It gave an historical overview of abortion and then an update on current methods of abortion. It did not cover the ethical or moral issues surrounding abortion but gave a comprehensive view of services available. It also incorporated views of women undergoing abortions which highlihted the personal perspective of such a profound decision.

BBC

In a recent research project concerning abortion services in Wales I found that most services adhered to national guidelines (by the Royal College of Obstetricians and Gynaecologists), but that some women were not able to choose the method of abortion because of a lack of local services.

University of Glamorgan

I welcome discussion about this issue.