B
B
BonBon Slick2016-10-05 20:01:26
git
BonBon Slick, 2016-10-05 20:01:26

How to commit an entire project to Bitbucket?

I type git add * then git commit -m "2-d commit" says that everything is ok on the master branch, and does not require a download. I need to upload the entire project, clean, so to speak, and then update it with commits every day, if everything is ok. I understand that git add * adds all the changed files, although even after the change, it still does not commit anything from the folder. I don’t understand something, for example, my project is all in the lara53 folder , it’s clear that there is a clean Laravel 5.3 project, now I want to commit it to Bitbucket clean, how to do this ( 1 - git add * 2 - git commit -m "message here" / git push origin master don't work, says nothing to commit ) ?

[email protected] MINGW64 ~
$ cd C:\Users\BonBonS\Desktop\OpenServer\domains\lara53

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git add -A

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git commit -m "asdasd"
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git add *

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git commit -m "asd"
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git add .

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git commit
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git init
Reinitialized existing Git repository in C:/Users/BonBonS/CUsersBonBonSDesktopOpenServerdomainslara53/.git/

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git add -A

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git commit
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git add *

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git commit
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git add .

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)
$ git commit
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

[email protected] MINGW64 ~/C:UsersBonBonSDesktopOpenServerdomainslara53 (master)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
BonBon Slick, 2016-10-06
@BonBonSlick

The decision turned out to be quite "debi ** th" and right under his nose, as always. I describe the essence of the problem. When adding the mkdir folder , this path to the local repository C:\Users\BonBonS\Desktop\OpenServer\domains\lara53 is perfectly fine; however, if you write cd C:\Users\BonBonS\Desktop\OpenServer\domains\lara53, it will go to this path ~ /C:UsersBonBonSDesktopOpenServerdomainslara53 and we need ~/C:Users/BonBonS/Desktop/OpenServer/domains/lara53 . It was necessary to write cd C:Users/BonBonS/Desktop/OpenServer/domains/lara53 and then we got such a path where we could already check everything with the commands:
pwd / ls / git status ... Все, всем спасибо, вчера вечером часа 3 мучался, пришел с универа за 10 минут решил, буду мув он.

R
RedHairOnMyHead, 2016-10-05
@ThePyzhov

git init
git add *
git commit -m "your commit"
git remote add origin https://your_rep.git
git push -u origin master

Анатолий Медведев, 2016-10-05
@balamyt92

cd /path/to/my/repo
git remote add origin [email protected]:USERNAME/my-repo.git
git push -u origin --all 
git push origin --tags

Естественно перед этим вам нужно на битбаките создать репозиторий, собственно говоря после чего вам будет предложено сделать описанное выше.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question