-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGit notes
29 lines (16 loc) · 1.03 KB
/
Git notes
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
Git notes
Change directories to the folder that has the files you want to push to git.
run the #git init - command to initialize the git and set the files as local git repository.
run the #git add . - to stage the files and get them ready for pushing to the repository
run the #git status command to view what you have staged to be pushed
run the #git commit -m " your message for the commit"
run the #git remote add origin "git@github.com:bethangelandichu/scaling-funicular.git"//only ran in the first occurence during pushing to repository.
git remote add origingit@github.com:bethangelandichu/polished-Little-Lemon-Project.git
run the #git push -u origin main - this pushes your changes to the repository
if all fails use force: git push -u -f origin main
---
research do you need to add URL each time when pushing to git????
**************************************************************************************************************
vscode NOTES
create-react-app.(its name here)
npm start