GRV - लिनक्स टर्मिनल में Git रिपॉजिटरी को देखने के लिए एक उपकरण


GRV ( Git रिपॉजिटरी व्यूअर ) git रिपॉजिटरी को देखने के लिए एक मुक्त ओपन-सोर्स और सरल टर्मिनल-आधारित इंटरफ़ेस है। यह वीआईएन/वीआईएम जैसे प्रमुख बाइंडिंग का उपयोग करके रीफ्स, कमिट्स, ब्रांच को देखने और खोजने का एक तरीका प्रदान करता है। इसे कॉन्फ़िगरेशन फ़ाइल के माध्यम से व्यवहार और शैली को आसानी से अनुकूलित किया जा सकता है।

  • Provides a query language to filter refs and commits.
  • Supports Vi/Vim-like key-bindings by default, and key bindings can be customized.
  • Captures changes to the repository by monitoring the filesystem allowing the UI to be updated automatically.
  • It is organized as tabs and splits; allows for creating custom tabs and splits using any combination of views.
  • Supports customizable themes.
  • Offers mouse support.
  1. Go version 1.5 or later should be installed on your system.
  2. libncursesw, libreadline and libcurl.
  3. cmake (to build libgit2).

लिनक्स सिस्टम में GRV कैसे स्थापित करें

दिखाए गए अनुसार डिफ़ॉल्ट पैकेज प्रबंधक का उपयोग करके पहले निर्भरता स्थापित करें।

$ sudo apt install libncurses5-dev libncursesw5-dev libreadline-dev cmake	#Debian/Ubuntu 
# yum install ncurses-devel readline-devel cmake 		                #RHEL/CentOS
# dnf install ncurses-devel readline-devel cmake		                #Fedora 

फिर GRV स्थापित करें, निम्न कमांड GRV से /bin स्थापित करेगा। इस तरह से बनाए जाने पर एक स्थिर libgit2 का निर्माण और GRV में शामिल किया जाएगा।

$ go get -d github.com/rgburke/grv/cmd/grv 
$ cd $GOPATH/src/github.com/rgburke/grv
$ make install

GRV को सफलतापूर्वक स्थापित करने के बाद, आप refs , कमिट , शाखाएं और भिन्न देख सकते हैं। सिंटैक्स का उपयोग करके अपने भंडार का अनुसरण करता है।

$ $GOBIN/grv -repoFilePath /path/to/repository/

इस उदाहरण में, हम ~/bin/shellscripts में रिपॉजिटरी फ़ाइल के refs, commits, शाखाओं और diffs देखेंगे।

$ $GOBIN/grv -repoFilePath ~/bin/shellscripts 

आप GRV सहायता पृष्ठ से अतिरिक्त उपयोग विकल्प पा सकते हैं।

$ $GOBIN/grv -h

GRV Github रिपॉजिटरी : https://github.com/rgburke/grv

इस लेख में, हमने समझाया है कि git रिपॉजिटरी को देखने के लिए टर्मिनल आधारित UI GRV का उपयोग कैसे करें और कैसे करें। इसके बारे में अपने विचार साझा करने या कोई प्रश्न पूछने के लिए नीचे दिए गए फ़ीडबैक फ़ॉर्म का उपयोग करें।