Web & Social Media Analytics Previous Year Question Paper.pdf
Checkitmobile Git Workshop
1.
2. Moving from remote to local The 1st and biggest change you should always remember: You're now working with a local Repository. Instead of commiting directly to remote, you'll commit from now on to your local Repository. Updating remote is done later. Why is this useful? Because it's not more centralized - we can now create commits even if we're offline or share branches with Team-Members directly.
4. Moving from remote to local create a first local commit $ git commit -A -m „1st commit“ create a second local commit $ git commit -A -m „2nd commit“ send both local commit's to remote $ git push origin master remote repository origin/master
5.
6. $ git status Changes not staged for commit: … Gemfile … app/controllers/application.rb $ git add . $ git status Changes to be committed: … Gemfile … app/controllers/application.rb $ git commit -m „remove comments“ [master] remove comments - 2 files changed, 2 deletions(-)