Skip to content

Latest commit

 

History

History
107 lines (64 loc) · 2.26 KB

Terminal-Commands.md

File metadata and controls

107 lines (64 loc) · 2.26 KB

Terminal Commands

GitHub

Update files on your own GitHub

  1. git add * ou git add nome-arquivo
  2. git commit -m "comentário da alteração"
  3. git push origin master

Update local files updated on GitHub

  1. git pull

Create New Repository

  • Create directly on GitHub

or

  • git clone repository-link

Make a Branch e Pull Request

  1. git branch nova-branch
  2. git checkout nova-branch

or

  1. git checkout -b nova-branch (sai de uma branch, cria outra e entra nela)

  2. git add *

  3. git commit -m "alterei o arquivo x"

  4. git push --set-upstream origin nova-branch

  5. Ir no branch criado e criar o pull request

Creating a feature branch and incorporating a finished feature on develop

  1. git checkout -b myfeature develop
    • Switched to a new branch "myfeature"
  2. git checkout develop
    • Switched to branch 'develop'
  3. git merge --no-ff myfeature
    • Updating ea1b82a..05e9557 (Summary of changes)
  4. git branch -d myfeature
    • Deleted branch myfeature (was 05e9557)
  5. git push origin develop

Clone Private Repository

Change Your Git Default Editor to Sublime

  • git config --global core.editor "subl3 -n -w"

Skipping the Staging Area

Using -a option to the git commit command, you don't need to git add, it will automatically add all files that are tracked.

  • git commit -a -m "text"

Rename Files

  • git mv file_from file_to

View Commit History

  • git log

or

  • git log -p

Links

Install with pip in Windows

  • py -m pip install module-name

Install with conda in Ubuntu

  • conda install module-name

Add on PATH in Ubuntu

  1. sudo nano /etc/profile
  2. export PATH=$PATH:/home/murilo/anaconda3/bin on end of file
  3. Ctrl+O to save
  4. Ctrl+X to exit
  5. Reinicialize the system
  • "echo $PATH" to see all the PATH's

Python Important Stuffs

Pipenv documentaton

Command to active the virtual environment for tensorflow

source ~/tensorflow/venv/bin/activate