Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!
Login
Remember
Register
References
Add reference
Ranks
Add reference
Git: How to upload files into Github repository with command-line
0
votes
67
views
added
Jul 26, 2017
in
Git
by
LC Marshal
Captain
(
25,840
points)
recategorized
Nov 17, 2017
by
LC Marshal
Create new repo in github e.g
https://github.com/username/new-repo.git
go to local directory
Go to local and cd to the directory e.g 'new-repo' directory, hence cd (or git bash here)
wamp/www/github/new-repo/
In 'new-repo' -->
git init
Add all files into repo -->
git add <filename>
Stage and commit all files -->
git commit -m "your initial push"
Add files into remote -->
git remote add origin
https://github.com/username/new-repo.git
Push files -->
git push -u origin master
done.
git
repository
command
command-line
github
Please
log in
or
register
to response this reference.
Related reference
Git - Ignore files to be included on repository with .ignore file
Handy Git command
How to checkout branch into local repository using command?
Git push: renaming branches
Git push: to a remote repository
Add Github account to SourceTree
Git - remove all files from repository
Git - delete remote branch
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
All categories
API
(21)
jQuery
(163)
Javascript
(85)
React
(39)
Vue
(25)
Next JS
(8)
JSX
(9)
ES6
(9)
Regex
(6)
PHP
(58)
mySQL
(9)
Drupal
(15)
SCSS
(21)
CSS
(94)
Bootstrap
(22)
Repository
(28)
Git
(27)
Mercurial
(1)
Software & tools
(36)
Google tools
(21)
Plugins
(13)
Gulp
(9)
NPM
(8)
Node JS
(7)
CMS
(9)
Command-line
(6)
Database
(2)
Domain & hosting
(15)
Elixir
(1)
HTML
(15)
Mobile application
(1)
Networking
(4)
Python
(0)
Server issues
(5)
UI
(3)
VM & Remote desktop
(2)
VSCode
(4)
Webpack
(0)
Windows
(6)
XSLT
(5)
Angular JS
(0)
General
(875)
...