NEWS COMMUNITY STORE LABS GIT SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE LABS GIT TOGGLE FULLSCREEN VOLLBILD AN/AUS image/svg+xml image/svg+xml image/svg+xml DIRECTORY TO REPOSITORY
Use a local directory to create an repository
image/svg+xml image/svg+xml Use a local directory to create an repository image/svg+xml
quick-tip img:not(.icon) quick-tip img:not(.icon) quick-tip img[data-info] APP | VERSION
Linux/Ubuntu


RELATED TAGS
git, local, directory, server, remote, repository


QUESTIONS
How can I put my local directory on a git server?
Can I start a repo from local disc?
Is there a way to use an existing project to start as repo?


LINKS
Git Init
Git From Local
    Open CMD
Open your CMD/terminal and navigate to the direcotry. cd {path/of/project}

    Initialize Git
If the project is not already a git project, you need to "initialize" it and create a first commit.

    Set Server
This tells git that this project has an online server (remote) that you call "origin".

In the command bellow, you would take for "GIT-USERNAME" the git user created on the server and for "SERVER-ADDRESS" the address of the server.

Note: If the server is connected through ssh and a special SSH key (and name) for this server was defined on your local computer, check your local SSH configuration.

If you have the correct address, type: path/of/project:$git remote add origin {GIT-USERNAME@SERVER-ADDRESS:PATH/TO/PROJECT.git}
If you mispelled the addres or don't like it, you can also change the remote address later.

    Set Branch Name
Tell git now which branch you want to take, in new projects it typically would be "main".
Only if the repository already has a "main" branch, this step can be skipped.

path/of/project:$git branch -M main

    Upload to Server
Evertyhing is ready to upload to the server path/of/project:$git push -u origin main
APP | VERSION
Linux/Ubuntu


RELATED TAGS
git, local, directory, server, remote, repository


QUESTIONS
How can I put my local directory on a git server?
Can I start a repo from local disc?
Is there a way to use an existing project to start as repo?


LINKS
Git Init
Git From Local
GIT Overview






All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...