-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommands.txt
More file actions
66 lines (46 loc) · 1.67 KB
/
Commands.txt
File metadata and controls
66 lines (46 loc) · 1.67 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Para instalar librerias:
# 1. Cambia a la carpeta de Python 3.12 (opcional)
# cd "C:\Users\marco\AppData\Local\Programs\Python\Python312"
# 2. Instala numpy en Python 3.12 usando pip
# .\python.exe -m pip install numpy
# 3. Comprueba que numpy está instalado
# .\python.exe -m pip show numpy
# 4. Ejecuta tu script con Python 3.12
# .\python.exe "c:\Users\marco\Desktop\Marco\Python\Github practise\script.py"
On VSCode terminal
Video: https://www.youtube.com/watch?v=mJ-qvsxPHpY
Para proyectos en equipo
Uno lo sube con push
El otro hace primero un pull (se mergean si no hay conflictos) para poder hacer su push
Clone github repo
git clone linkOfRepo [Press "Code" button and then HTTPS]
Start git
git init
// Create github repo on google
git remote add origin [repo, https://github.com/codeMGL/My-First-Repo.git]
Save progress
git add [file, index.html]/[everything, .]
git commit -m "message"
Push changes into github
git push -u origin [branch, main]
// Si entra en conflicto (si hay un README?):
git checkout main (para ir a ese branch)
git pull origin main --rebase (compara cambios?)
git push -u origin main
Pull changes from github // Both commands? Just first? Just second?
git reset --hard HEAD
git pull origin [branch, main]
Remove files
rm [file, index.html]
Add files
'' > [file, app.js] or
echo > [file, app.js]
Log saves
git log
git status --> Check status of all changes
Go back to another save, creates a different branch
git checkout [hashcode, 8143367baf05103275d52f36078279de525aa3ac]
Create new branch
git checkout -b [branchName, new-branch]
See branches
git branch