git-profile alternatives and similar libraries
Based on the "Miscellaneous" category.
Alternatively, view git-profile alternatives based on common mentions on social networks and blogs.
-
Country List
:globe_with_meridians: List of all countries with names and ISO 3166-1 codes in all languages and data formats. -
Essence
Extracts information about web pages, like youtube videos, twitter statuses or blog articles. -
sabre/vobject
:date: The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects -
Lodash-PHP
Easy to use utility functions for everyday PHP projects. This is a port of the Lodash JS library to PHP -
Embera
A Oembed consumer library, that gives you information about urls. It helps you replace urls to youtube or vimeo for example, with their html embed code. It has advanced features like offline support, responsive embeds and caching support. -
Metrics
Simple library that abstracts different metrics collectors. I find this necessary to have a consistent and simple metrics (functional) API that doesn't cause vendor lock-in. -
ClassPreloader
Optimizes class loading performance by generating a single PHP file containing all of the autoloaded files. -
Cake Utility
[READ-ONLY] CakePHP Utility classes such as Inflector, Text, Hash, Security and Xml. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp -
RedisSessionHandler
An alternative Redis session handler for PHP featuring per-session locking and session fixation protection -
Yell
PHP package to make your objects strict and throw exception when you try to access or set some undefined property in your objects.
Cloudways Early Bird Offer
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of git-profile or a related project?
README
git-profile Utility that helps you switch git configurations with ease
Preface
It is possible that you have multiple git configurations. For example:
; Office Profile
Name: John Doe
Email: [email protected]
; Personal Profile
Name: John Doe
Email: [email protected]
It could be a hassle to remember and switch between the profiles while working on different projects.
This utility aims to make this hassle free.
Features
- Create and manage profiles globally; create once, use anywhere
- Set profile for a specific project
- Set global profile with a single command
This utility helps you save profiles and then you can switch between them using a single command.
Install
$ composer global require zeeshan/git-profile
Then check your $PATH
variable. It must contain ~/.composer/vendor/bin
dir.
$ echo $PATH
/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/home/username/.composer/vendor/bin
Modify your .zshrc
or .bashrc
files if your $PATH
variable not contain composer/bin dir.
export PATH=~/.composer/vendor/bin:$PATH
Also you can use .phar file
- Download the file from here
sudo chmod -R 755 git-profile
sudo mv git-profile /usr/local/bin/git-profile
Usage
$ git-profile [options] <command>
Options
-h, --help Display this help message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
Commands
rm Remove git profile
use Change git profile locally or globally
add Create a new git profile
show Show details for an existing profile
update Update details for an existing profile
current Gets the currently set profile
list List of profiles
Examples
Find some of the sample usages below
Adding Profiles
$ git-profile add
[+] Enter profile title: Office
[+] Enter Name: John Doe
[+] Enter Email: [email protected]
[+] Enter Signingkey: B7156A83
[OK] Profile "Office" saved successfully
Remove Git Profile
$ git-profile rm "Office"
[OK] Profile "Office" successfully removed
Show Details for a profile
$ git-profile show "Office"
[+] Name: John Doe
[+] Email: [email protected]
[+] Signingkey: B7156A83
Updating Profile
$ git-profile update "Office"
[+] Enter Name: Jane Doe
[+] Enter Email: [email protected]
[+] Enter Signingkey: 547ABB1C
[OK] Profile "Office" updated successfully
Switching Profile
Setting details locally i.e. set profile for the current project
$ git-profile use "Office"
[OK] Switched to "Office"
Setting details globally i.e. set global configuration
$ git-profile use "Office" --global
[OK] Switched to "Office"
Get Current Profile
$ git-profile current
[+] Current Profile "Office"
[+] Name: John Doe
[+] Email: [email protected]
[+] Signingkey: 547ABB1C
Side note It should be noted that profiles are maintained globally. When you use
some profile locally, what it does is get the configuration for that profile and sets it for the current project. i.e. when use
is run locally it is equivalent to
$ git config user.name "Name for specified profile"
$ git config user.email "[email protected]"
$ git config user.signingkey "SIGNINGKEY"
Profiles List
$ git-profile list
Available profiles:
Github
Home
Office
License
MIT © Zeeshan Ahmad
*Note that all licence references and agreements mentioned in the git-profile README section above
are relevant to that project's source code only.