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 :: dart 
Shell :: Install specific node version and update node to lastest stable version 
Shell :: bash sed with variable 
Shell :: list inactive services ubuntu 
Shell :: how to check what module pip has already install 
Shell :: git merge with message 
Shell :: jupyter install not running on windows 
Shell :: scp local to remote 
Shell :: git revert to last commit 
Shell :: linux script to clean up log files 
Shell :: docker redis set username and password 
Shell :: php install extension 
Shell :: unable to install ta-lib 
Shell :: add ssh key linux 
Shell :: install anbox terminal 
Shell :: git reset a folder 
Shell :: sbt install mac 
Shell :: how to update composer in laravel 
Shell :: powershell variable to string 
Shell :: install neovim 
Shell :: bash make multiple directories in current directory 
Shell :: remove gitignore files 
Shell :: ubuntu uninstall ros 
Shell :: composer install one line 
Shell :: install geopandas in jupyter notebook 
Shell :: how to install android studio in ubuntu 
Shell :: push to github from terminal 
Shell :: how to compile 64 bit nasm 
Shell :: push-github-project 
Shell :: remove staged files 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =