Sunday, April 28, 2019

Git




Easy guidelines

http://rogerdudler.github.io/git-guide/
https://confluence.atlassian.com/bitbucket/clone-a-repository-223217891.html


1. Create a git repository
git init


2. Clone it to another folder
git clone "/path/to/folder"
or clonse from github
 git clone https://username@bitbucket.org/teamsinspace/documentation-tests.git

or clone from ssh

 git clone ssh://git@bitbucket.org:teamsinspace/documentation-tests.git


3. After changing files or adding files, Add all new files
git add .

4. Commit all changes
git commit -m "I changed somethin"

5.  Push the changes to repository which we cloned from
# You can change master to any branch name you want for example feature_a
git push origin master


6. Pull the latest from the origin

git pull



No comments:

Post a Comment

Loud fan of desktop

 Upon restart the fan of the desktop got loud again. I cleaned the desktop from the dust but it was still loud (Lower than the first sound) ...