Not able to use Git in QtCreator (solved)
-
<QtCreator GitHub configuration >
Tools> options> version Control>git<TO PUSH CODE INTO GITHUB > NOT WORKING
Went into Tools> Git> Remote Repository> Push
OpenSSH username appear
Password appear
Error: failed to push some refs to "https//,,"
hint: updates were rejected because remote contains work that you do
hint: this is usually caused by another repository pushing
hint: you may want to first integrate the remote changes
The command "/usr/bin/git" terminated with exit code 1I did GitHub Quick Setup as per instructed on terminal
and my folder to upload is in /home/git.
I thought everything is correct.- echo "# PurpleTrain" >> README.md
git init
git add README.md
get commit -m "First commit"
git remote add origin https://github.com/houmingc/PurpleTrain.git
git push -u origin master
git config --global --edit
<TO PULL CODE FROM GITHUB > WORKING
- Click New Project
- Choose a template: import Project
- Git Repository Clone
Repository
Clone URL ->https://github.com/houmingc
Working copy
Path: /home/git - echo "# PurpleTrain" >> README.md
-
A) created an account in Github
B) put my files in local machine /home/git2/basiclayouts
C) Quick Setup- echo "# basicLayouts" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/alvingarlic/basicLayouts.git
git push -u origin master
D) Open QtCreator, Tools, Git, Remote Repository, push, username, password.
In Terminal, i commit successfully, but no code in github? Why
To https://github.com/alvingarlic/basicLayouts.git- [new branch] master -> master
Branch master set up to track remote branch master from origin.
Everything up-to-date
On Terminal, i got no problem uploading my project
- a) git remote add gitalvin https://github.com/alvingarlic/basicLayouts.git
b) git remote->working
c) git push -u gitalvin master
- echo "# basicLayouts" >> README.md
-
Hi,
What version of git are you currently using ? And which version of Qt Creator ?