Why Git is Better than X | Git or X

why-git-is-better-than-x

Cheap Local Branching

svn perforce

Everything is Local

bzr svn perforce

Git is Fast

hg bzr svn perforce

The Staging Area

svn perforce

Distributed

svn perforce

Any Workflow

hg svn perforce

GitHub

perforce

Easy to Learn

hg bzr svn perforce

Git is the new standard

Tagged : / / / / / / / / / / / / /

Git Troubleshooting | Git Troubleshooting Techniques

git-troubleshooting

export GIT_CURL_VERBOSE=1

git push -u origin –all –verbose

git config –list

&

GIT_CURL_VERBOSE=1 git push

&

export GIT_CURL_VERBOSE=1

git push

git config --global http.postBuffer

There are useful to debug, long running Git Commands or Git Commands that seem to be hanged for some reason,

Git has an in-built functionality for us to peek into what is running behind the scenes of a git command, just add GIT_TRACE=1 before ANY git command to get additional info, for example:

Other Flags that we can use are : GIT_CURL_VERBOSE=1, -v or –verbose

[server@user sp-server-branches]$ GIT_TRACE=1 git clone

https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide

https://drupal.org/node/1065850

http://mattberther.com/2013/12/29/pushing-large-git-repos-with-ssh

http://ocaoimh.ie/2008/12/10/how-to-fix-ssh-timeout-problems/

http://unix.stackexchange.com/questions/3026/what-do-the-options-serveraliveinterval-and-clientaliveinterval-in-sshd-conf

Tagged : / / / / / / / / /

All Possible Interview Questions on Git, Github and Gitlab

interview-questions-on-git-github-gitlab

  • What is GIT?
  • What is a repository in GIT?
  • What is the command you can use to write a commit message?
  • What is the difference between GIT and SVN and other CM systems?
    • Answers –
      • Cheap Local Branching
      • Everything is Local
      • Git is Fast
      • Git is Small
      • The Staging Area
      • Distributed
      • Any Workflow
      • Easy to Learn
      • Git is the new standard
  • What are the advantages of using GIT?
  • What language is used in GIT?
  • What is the function of ‘GIT PUSH’ in GIT?
  • Why GIT better than Subversion?
  • What is “Staging Area” or “Index” in GIT?
  • What is GIT stash?
  • What is GIT stash drop?
  • How will you know in GIT if a branch has been already merged into master?
  • What is the function of git clone?
  • What is the function of ‘git config’?
  • What does commit object contain?
  • How can you create a repository in Git?
  • What is ‘head’ in git and how many heads can be created in a repository?
  • What is the purpose of branching in GIT?
  • What is the common branching pattern in GIT?
  • How can you bring a new feature in the main branch?
  • What is a ‘conflict’ in git?
  • How can conflict in git resolved?
  • To delete a branch what is the command that is used?
  • What is another option for merging in git?
  • What is the syntax for “Rebasing” in Git?
  • What is the difference between ‘git remote’ and ‘git clone’?
  • What is GIT version control?
  • Mention some of the best graphical GIT client for LINUX?
  • What is Subgit? Why to use Subgit?
  • What is the function of ‘git diff ’ in git?
  • What is ‘git status’ is used for?
  • What is the difference between the ‘git diff ’and ‘git status’?
  • What is the function of ‘git checkout’ in git?
  • What is the function of ‘git rm’?
  • What is the function of ‘git stash apply’?
  • What is the use of ‘git log’?
  • What is ‘git add’ is used for?
  • What is the function of ‘git reset’?
  • What is git Is-tree?
  • How git instaweb is used?
  • What does ‘hooks’ consist of in git?
  • Explain what is commit message?
  • How can you fix a broken commit?
  • What is ‘bare repository’ in GIT?
  • How do you start Git and what is the process called?
  • How do you put your local repository (repo) on the GitHub server?
  • How to delete the working branch?
  • What as the strength and weaknesses of the software?
  • But I am quite happy with Subversion (SVN). What is all this fuss about? Is there a substantial trend for distributed versioning control systems (DVCS)?
  • Isn’t DVCS something for small teams and startups? I am working in a very big company. We value established things way more than the cutting edge stuff, that may not be here to stay.
  • Okay. Let’s say we go with DVCS. Why should I take git and not mercurial?
  • I like, that git allows our developers to host the complete repository on his local machine. That makes software development faster. So why do
  • you I need Stash on top?
  • How do you use this rights management with Stash? How does it work? Will developers only get have a repository? Is that still functional then?
  • What is a pull request? What is this for? Aren’t we sharing all code with all developers and let everyone do what he wants? Is that only for
  • hierachical software development methods?
  • How would you summarize the advantages of Stash in short?
  • What is the one reason, that your customers give Atlassian today on why they purchase Stash?
  • Can you offer us a small sneak peak into your upcoming next releases? Is there anything, that you can share first hand with us?
  • What is your general roadmap for stash? Where do you want to position it near and long term?
  • Do you ultimately plan to support Mercurial? When is a good time to buy Stash, if I run with hg at the moment?
  • Why should I go for Stash in favor of GitHub Enterprise or RhodeCode?
  • Why is Stash a separated product and not part of Bitbucket. I could imagine seeing Bitbucket Enterprise resembling GitHub Enterprise.
  • Is Atlassian using Stash internally in software development? If not, why not?
  • Wouldn’t it be interesting to combine Fisheye, Crucible and Stash in one product?
  • What is the difference between GIT and SVN?
  • What are the advantages of using GIT over other tools?
  • What is GIT stash?
  • What does commit object contain?
  • How can conflict in git resolved?
  • What is the difference between ‘git remote’ and ‘git clone’?
  • Mention some of the best graphical GIT client for LINUX?
  • What does ‘hooks’ consist of in git?
  • What is ‘bare repository’ in GIT?
  • Add a line to the some.txt file and then throw out all changes since the last commit.
  • Why GIT better than Subversion?
  • How to troubleshoot Git?
  • How to troubleshoot GitLab?
  • How to troubleshoot Github?
  • How to take Gitlab backup
  • What is Git Objects? explain about Tree, blob, commit, tag, branch objects?
  • How git Object storage works?
  • What is SHA1?
  • Introduction to the GitHub platform
  • github Distributed version control synchronization
  • github Project management and repository integration
  • github Multiple remotes and Fork maintenance
  • github Remote repository interaction and dependencies
Tagged : / / / / / / / / / / / / /