# Set Bash to save each command to history, right after it has been executed. # The number of entries to save in the history file. # The maximum number of lines in the history file. # Ignore saving short- and other listed commands to the history file. # Erase duplicate entries in history file. # Ignore lines which begin with a and match previous entries. # For example, ls **/*.txt will list all text files in the current directory hierarchy. # Enable the ** globstar recursive pattern in file and directory expansions. # Note, this works in conjuction with the cdspell option listed above. # Automatically expand directory globs and fix directory name typos whilst completing. # Automatically fix directory name typos when changing directory. = 'ls -la' alias lls = 'ls -la -sort=size' alias llt = 'ls -la -sort=time' alias rm = 'rm -iv' alias work = 'cd /c/repos' # Bash shell settings # Typing a directory name just by itself will automatically change into that directory. /././' alias bashclear = 'echo "" > ~/.bash_history' alias cls = 'clear' alias ls = 'ls -F -color=auto -show-control-chars' alias ll = 'ls -l' alias ll. # Git aliases alias gs = 'git status -sb' alias gcc = 'git checkout' alias gcm = 'git checkout master' alias gaa = 'git add -all' alias gc = 'git commit -m $2' alias push = 'git push' alias gpo = 'git push origin' alias pull = 'git pull' alias clone = 'git clone' alias stash = 'git stash' alias pop = 'git stash pop' alias ga = 'git add' alias gb = 'git branch' alias gl = "git log -graph -pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' -abbrev-commit" alias gm = 'git merge' # Bash aliases alias. Copy everything below into your own file. Refer to the Bash Manual for more information. Since the shell is interactive, the ~/.bashrc file is not sourced. A ~/.bash_profile can be used instead of ~/.profile but is read by Bash only. bash_profile contains commands for setting the shell's environment variables. The first readable file that exists is sourced.ġ. It will source files like ~/.bash_profile, ~/.bash_login, and ~/.profile in the order given. Bash uses a few startup files to configure the shell environment for users. The Git bash shell is invoked as an interactive login shell for Git-only authentication access. I will assume that Git for Windows and optionally also Windows Terminal are already installed. Improve your productivity with several simple tweaks that can enhance Bash out-of-the-box without using external stuff. MinGW64 (Minimalist GNU for Windows 圆4) has to be configured to take full advantage of these features. It comes in both 32-bit and 64-bit downloads.Due to the need to maintain backward compatibility, newer features of Bash are rarely enabled by default. Previous versions of the OS shouldn't be a problem with Windows 8 and Windows 7 having been tested. Git for Windows can be used on a computer running Windows 11 or Windows 10. What version of Windows can Git for Windows run on? The source code for Git for Windows should be freely available and modifications are certainly permitted as well as the option to inspect the software. The license provides the options to freely download, install, run and share this program without any restrictions. Git for Windows is available for free and released under the open source GPLv2 license on Windows from programming software. This makes it easier to understand how the code has evolved and to revert to previous versions if needed. Version control: Git allows you to track changes to your code over time, so you can see who made changes, when they were made and what was changed.Speed: Git is designed to be fast and efficient, so you can work with large codebases without experiencing any performance issues.Integration: Git for Windows integrates with other tools, such as GitHub, GitLab and Bitbucket, which are platforms for hosting and collaborating on Git projects.You can view this history at any time, or use it to revert to a previous version if needed. History: Git keeps a complete history of all changes to the code, so you can see how the code has evolved over time.You can create branches for different features or bug fixes and then merge the changes back into the main branch when they are ready. Collaboration: Git makes it easy for multiple developers to work on the same codebase simultaneously.*NIX users should feel right at home, as the BASH emulation behaves just like the "git" command in LINUX and UNIX environments. Git for Windows provides a BASH emulation used to run Git from the command line. Git for Windows focuses on offering a lightweight, native set of tools that bring the full feature set of the Git SCM to Windows while providing appropriate user interfaces for experienced Git users and novices alike. Brings the rich feature set of tools of Git to Windows users
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |