Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8937193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:21:59+00:00 2026-06-15T10:21:59+00:00

I am working with the latest Git bash for Windows, on my laptop running

  • 0

I am working with the latest Git bash for Windows, on my laptop running Windows 7.
When I define my aliases like:

$ alias gitc='git commit -a'

Everything works well during the session, but I cannot recover them if I close and open the bash.
The command history is preserved, though.

What should I do? What I have missed?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:22:00+00:00Added an answer on June 15, 2026 at 10:22 am

    When you open the git bash type in the command touch .bash_profile.
    Following this type vim .bash_profile.
    You can then add your aliases to this file. Save the file and reopen the git bash and your aliases should work as expected.

    This method allows you to create aliases for any bash command available in git bash however as others have answered it is also possible to create git specific aliases using git itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am playing with GIT on windows. Installed msysgit (latest version) and seems everything
I'm working with the latest version of the SDKs and FlashDevelop. So far, everything
Started working on a new application this week that is running the latest rails
How can I lookup the latest git commit hash from an ant build script?
I've been working with git for a few weeks, but now I'd like to
Working in the latest Unity3d 3.5 if it matters. If I have a set
I am working with AngularJS for my latest project. In the documentation and tutorials
I have installed the latest version of netbeans and its working.. I have opened
I'm working on my very own CMS. I put the latest updates of the
I'm working on getting knitr setup. I installed the latest version of R (2.15.1),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.