-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgitRepo_Setup
35 lines (20 loc) · 1.07 KB
/
gitRepo_Setup
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 git
>git config --global user.name "your username"
>git c config --global user.email [email protected]
Go to your project folder
>git init // this will initialize your project folder as repository and will set it as origin branch
>git add . // this will add all the fildes existing into the folder to the record of git repo)
>git commit -m 'first commit for project initialization'
>git remote add origin https://github.com/aquibrash87/One.git
> git push origin master
It will prompt for git username and password, and push the files there
in case of error while connecting to git
>git remote remove origin
for details consult
https://www.youtube.com/watch?v=gAWiXbT599E
Tools>local>commit for project initialization commit
for qt creator configure remote repository by adding
>git remote add origin https://{username}:{password}@github.com/{username}/project.git
>git push -u origin master
in case the qt creator does not connect to github and show No refs in common message,
go to your project directory and open git bash and type the git push above command directly