.gitignore
Use .gitignore file can help you not to upload unnecessary files and folders.
For example:
1 | .DS_Store |
if .gitignore not working
1 | # try this |
1. git init
2. git add
Usage: git add [file]
Usage: git add *
This command adds one or more to the staging area.
3. git status
Usage: git status
This command lists all the files that have to be committed.
4. git commit
Usage: git commit -m “[ Type in the commit message]”
This command records or snapshots the file permanently in the version history.
5. git log
Usage: git log
This command is used to list the version history for the current branch.
6. git branch
Usage: git branch
This command lists all the local branches in the current repository.
7. git branch
Usage: git branch
Usage: git checkout -b [branch name]
This command lists all the local branches in the current repository.
8. git push
git push -u origin 0.1
#branch
git push -u origin master