Loading search index…
No recent searches
No results for "Query here"
# use current folder as git repository > git init --initial-branch=main # add all files to the first commit > git add . # add only specific files or folders to first commit > git add path/to/file # add a message to this commit > git commit -m "just adding these files to my repo" # setup previously created remote repository > git remote add origin git@gitlab.com:my-username/sample.git # push changes from to remote master > git push -u origin main
# create a new branch and switch into > git checkout -b fancy-branch # switch into an existent branch > git checkout fancy-branch