Hi, I am having difficulties in uploading my project into a repository online because i wanted to upload three separate folders into one repository and for many hours i had these errors.
Could some please provide simplest way possible to upload two separate project folders into one or a simplest method possible.
Thanks
Some errors were
C:\Users\ADITYA\PycharmProjects\DBSCAN>git commit -m "First Commit"
On branch master
nothing to commit, working tree clean
C:\Users\ADITYA\PycharmProjects\DBSCAN>git push -u origin master
To https://bitbucket.org/aditya_d/masterproject827755.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://aditya_d@bitbucket.org/aditya_d/masterproject827755.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Also, please provide a detailed solution and not have you read instructions.I read instructions and an hour was spent but a Youtube video helped me to upload one project in 10 mins. But i made a mistake again. Apologies
You just need to pull the changes from remote to your local first before pushing the changes.
If you get a merge conflict after #1, you will have to resolve them and commit the resolved files.
C:\Users\ADITYA\PycharmProjects\DBSCAN>git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do either of the following:
or
and see if it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jobin,
Thanks for that, but I already made a repo and uploaded it. Could you please tell me how could i upload 2 or more folders into an empty or existing repository? I am having headache after reading instructions? I do not like the idea of uploading three times into three different repos. USB drives are great then.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you mean by uploading 3 times in to 3 different repos? Here is what is happening:
At this stage, someone else have already made changes in remote. Or you might have made it from elsewhere. So, you need to pull those changes to your local and merge them before pushing your changes to remote. The steps I gave was for that. The flow changes to:
Hope that clarifies.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jobin,
I understand and that was my mistake then but could you please guide me how can i upload 3 or more folders into a new repository?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.