-
Notifications
You must be signed in to change notification settings - Fork 3
/
gitcommands.txt
35 lines (29 loc) · 913 Bytes
/
gitcommands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
################ Install Arcade #################
python3 -m pip install -U pygame --user
pip3 install arcade
pip install dataclasses
################### GIT ###############################
git init
git add .
git commit -m "pong"
git status
git add draw.py
git commit -m "Arcade drawing with loops"
git remote -v
git remote add origin https://github.com/hsweet/pong.git
git remote set-url origin [email protected]:hsweet/pong.git
git remote -v #show origin
git push -u origin master
git push
########## Branches ######################
git branch "branchname"
git checkout "branchname"
or .. git checkout -b "branchname"
############## SSH #############################
ssh-keygen -t rsa -b -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add id_rsa
ssh -T [email protected]
################ Make graphics ###############
convert -size 10x90 canvas:black paddle.png
convert -size 30x30 canvas:black ball.png