Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

create folder in github

git add folderName/ 
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/HayfaAbusnina/student_data.git
git push -u origin main
Comment

how to create folder in 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.
Comment

github create directory

touch README.md
nano README.md
#### ADD YOUR INFORMATION
#### Press: control + X
#### Type: Y
#### Press: enter
Comment

github create directory

git checkout -b NAME-OF-BRANCH
Comment

github create directory

cd NAME-OF-FILE
Comment

github create directory

cd NAME-OF-YOUR-NEW-DIRECTORY
Comment

github create directory

git add CHANGES
Comment

github create directory

git push origin NAME-OF-BRANCH
Comment

github create directory

mkdir NAME-OF-YOUR-NEW-DIRECTORY
Comment

github create directory

git status
Comment

github create directory

cd NAME-OF-PROJECT
Comment

github create directory

git commit -m "DESCRIBE COMMIT IN A FEW WORDS"
Comment

PREVIOUS NEXT
Code Example
Shell :: how to push to a new branch in gitlab 
Shell :: renaming a file github 
Shell :: connect project to git repository 
Shell :: start with in shell script 
Shell :: instal rust lang on linux 
Shell :: linux birthday 
Shell :: install postman arch linux 
Shell :: nano duplicate line or copy paste line 
Shell :: shell cehck if string is null 
Shell :: ansible become_method sudo example 
Shell :: how to search in git bash 
Shell :: vim no space 
Shell :: scripting sobre ficheros 
Shell :: ligne de commande pour installer lex sur linux 
Shell :: loggy.sh android 
Shell :: install fzf redhat 8 
Php :: drupal 8 show php errors settings.php 
Php :: how remove from string in php 
Php :: laravel version check 
Php :: php header utf8 json 
Php :: fluid inline if 
Php :: htaccess post max size 
Php :: update php version using htaccess 
Php :: (2482:3) autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated. 
Php :: store image in public folder laravel 8 
Php :: how to make validate error when password doesnt match with password confirm laravel 
Php :: composer install ignore 
Php :: php server referer 
Php :: index.php wordpress 
Php :: laravel table data types 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =