I am curious about this GIT ever since but I don't have any actual encounter to use GIT in my development until now. I have a freelance job which use GIT as source control.
This project is an odoo development.
I have been struggling to commit my codes as I'm not familiar how to use GIT but luckily I understand a little bit more now.
With the help of my friend Google. There are some tutorial and sites that is very helpful to my knowledge.
very slick site and clear to understand
http://rogerdudler.github.io/git-guide/
another very good site to understand more about merging
https://confluence.atlassian.com/bitbucket/use-a-git-branch-to-merge-a-file-681902555.html
# clone a remote repository
git clone https://skyguyver@bitbucket.org/skyguyver/malphi.git
# update local repository
git pull origin master
# to see any changes
git status
# to check the difference
git diff
# last 1 entry in the log
git log -1
# to move to staging
git add <file>
# to commit
git commit -m "some comments here"
# show commit history
git log
git show 81a00
# revert committed
git revert 81a00
# delete irreversible
# git reset --hard 2e75
# reset and delete current merge
git reset --hard HEAD
# set usename and email
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
I found this more useful with an image to understand more about GIT
https://developer.atlassian.com/blog/2014/12/pull-request-merge-strategies-the-great-debate/
Subscribe to:
Post Comments (Atom)
free online comma separating tool
https://delim.co/#
-
In my current company, I'm using Visual Paradigm for my documentation task. If you go there site, you can either download community and ...
-
One of the functionality in our system is can able to generate a report using Jasper report. We have a Jasper server setup in another ip ad...
-
This issue happens when I installed Postgres in my vagrant (vm) and then I after a while I removed it. But the service is still running in t...
No comments:
Post a Comment