Basting is temporary sewing to hold things in place.
It is typically done by hand, but you can also machine baste.
Examples of where basting is commonly used are:
Basting is never permanent, but merely a temporary measure to hold things in place.
Basting and pinning are different techniques for similar situations