Skip to content

Instantly share code, notes, and snippets.

@gaslitbytech
Last active August 29, 2015 14:06
Show Gist options
  • Save gaslitbytech/ac78f9e61b956d69293e to your computer and use it in GitHub Desktop.
Save gaslitbytech/ac78f9e61b956d69293e to your computer and use it in GitHub Desktop.
Melbourne django School Windows Powershell Commands
(school) PS C:\Users\Dave\Documents\Projects\MelbDjango\wibble> history
Id CommandLine
-- -----------
1 cd C:\Users\Dave\Documents\Projects
2 mkdir MelbDjango
3 cd .\MelbDjango
4 python
5 pip
6 C:\Python27\Scripts\pip.exe
7 C:\Python27\Scripts\virtualenv.exe school
8 dir
9 .\school\Scripts\activate
11 pip install django
12 pip list
18 cd .\school\Scripts\
19 cd ..
20 cd ..
21 .\school\Scripts\django-admin.exe startproject wibble
22 dir
23 cd wibble
24 dir
25 cd ..
26 cd .\wibble
27 dir
29 cd .\wibble
30 ls
31 notepad .\settings.py
33 cd ..
34 ls
38 python .\manage.py startapp blog
42 cd blog
43 ls
44 cd ..
45 python.exe .\manage.py makemigrations
46 python.exe .\manage.py migrate
47 python.exe .\manage.py runserver
48 Get-History
49 python.exe .\manage.py runserver
50 cd ..
51 git init
52 cd .\wibble
53 ls
54 git init
55 git add wibble/
56 git reset
57 git add .\blog
58 git .\manage.py
59 git status
60 git log
61 git add .\manage.py
62 git add .\wibble
63 git status
64 git diff
65 git log
66 git commit -m "first commit"
67 git log
68 git diff
69 git checkout -b other
70 git branch
71 ls
72 git log
73 git status
74 git commit -m "says insteads claims"
75 git diff master
76 git checkout master
77 git merge other
78 git diff master
79 git diff other
(school) PS C:\Users\Dave\Documents\Projects\MelbDjango\wibble>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment