Reputation: 99
I am trying to push my local project ot my remote repository.
but while i put the $git push -u origin master
its not working
Its stuck here for long time.
what i am missing here ?
Upvotes: 1
Views: 54
Reputation: 334
$git remote add origin <Your remote repository>
and create branch $git branch -m master
$git add .
then$git push -u origin master
Upvotes: 2
Reputation: 99
$git add .
thenUpvotes: 1
Reputation: 75
a workaround i tend to use is going to a difrent folder and do
git clone (url here)
then copy the projct files to the folder it made then add the files with
git add (files)
and commtit with
git commit -m "message"
and push with
git push -f
(idk why the -f but a frend of mine told me to do it so ive done i scince)
Upvotes: 2