Създаване на хранилище github с помощта на баш

Примерен код

22
0

как да създадете папка в github

You cannot create an empty folder and then add files to that folder, 
but rather creation of a folder must happen together with adding of 
at least a single file. On GitHub you can do it this way:

    Go to the folder inside which you want to create another folder
    Click on New file
    On the text field for the file name, first write the folder 
    	name you want to create
    Then type /. This creates a folder
    You can add more folders similarly
    Finally, give the new file a name 
    	(for example, .gitkeep which is conventionally used 
        	to make Git track otherwise empty folders; it is 
            	not a Git feature though)
    Finally, click Commit new file.
3
0

git ще съществуващия код в новото хранилище

git remote add origin <remote repository URL>
2
0

създаване на хранилище github с помощта на баш

winpty curl -H 'Authorization: token [GENERATED_TOKEN]' https://api.github.com/user/repos -d '{"name":"[REPO_NAME_YOU_WANT]"}'

# follow steps here to generate token:
https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line

# note : you can add parameters to you command to set a description, switch to private, etc...
1
0

как да се създаде клон в github с помощта на git bash

$ git checkout -b [name_of_your_new_branch]

Подобни страници

Подобни страници с примери

На други езици

Тази страница на други езици

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Íslensk
..................................................................................................................