Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Aphorismen
Applications
Business Economics & Admin.
My Computers
Cooking
Devices
Folders
Food
Hardware
Infos
Software Development
Sports
Operation Instructions
Todos
Test
Help
Glossary
Community portal
adaptions
Sidebar anpassen
Wiki RB4
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Git
(section)
Page
Discussion
English
Read
Edit
View history
Toolbox
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Make an existing Project Directory to a Git Repository/Create Repository=== * go into the directory and git init * this will create .git directory * then [[Git#Add_File_or_Directory_to_be_tracked|add files]] git add <FILENAME> // e.g. 'git .' or 'git add .\D1\F1.txt' * if needed connect to a remote repository git remote add [shortname for remote] [url] // e.g. git remote add origin https://gitlab.com/UweHeuer/test1.git // this will not create a new project remotely but just store the connection * commit changes git commit * push everything to remote git push -u origin master // on GitLab this will create a new project, -u is important to make master a tracking branch and origin/master the upstream branch * create a branch git checkout -b branch1 * add and commit files * push branch to remote git push -u origin branch1 // -u important to make branch1 a tracking branch (see git branch -vv) // if -u forgotten at the first call you can set the upstream branch later e.g. by git push -u origin branch1
Summary:
Please note that all contributions to Wiki RB4 may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Uwe Heuer Wiki New:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width